LS [-b] [-r] [-a[attrib]] [file]
-b - Display one screen at a time
-r - Display recursively (including subdirectories)
-a - Display files with attributes of type attrib
attrib - File attribute list:
a - Archive
s - System
h - Hidden
r - Read-only
d - Directory
file - Name of file or directory (wildcards are permitted)
Note:
1. Files and directories with the system and hidden attributes are not
displayed unless the 's' and 'h' attributes are specified.
Examples:
* To hide files by adding the hidden and system attributes:
fs0:\〉 attrib +h +s *.efi
ASH fs0:\IsaBus.efi
ASH fs0:\IsaSerial.efi
* To display all files in the current directory:
fs0:\〉 ls
Directory of: fs0:\
06/18/01 09:32p 153 for.nsh
06/18/01 01:02p 〈DIR〉 512 efi
06/18/01 01:02p 〈DIR〉 512 test1
06/18/01 01:02p 〈DIR〉 512 test2
06/18/01 08:04p 29 temp.txt
06/18/01 08:05p 〈DIR〉 512 test
01/28/01 08:24p r 29 readme.txt
3 File(s) 211 bytes
4 Dir(s)
* To display all files in the current directory:
fs0:\〉 ls -a
Directory of: fs0:\
06/18/01 09:32p 153 for.nsh
06/18/01 01:02p 〈DIR〉 512 efi
06/18/01 01:02p 〈DIR〉 512 test1
06/18/01 01:02p 〈DIR〉 512 test2
06/18/01 10:59p 28,739 IsaBus.efi
06/18/01 10:59p 32,838 IsaSerial.efi
06/18/01 08:04p 29 temp.txt
06/18/01 08:05p
512 test
01/28/01 08:24p r 29 readme.txt
5 File(s) 61,788 bytes
4 Dir(s)
* To display all read-only files in the current directory:
fs0:\〉 ls -ar
Directory of: fs0:\
06/18/01 11:14p r 29 readme.txt
1 File(s) 29 bytes
0 Dir(s)
* To display the file 'isabus.efi' with the system attribute:
fs0:\〉 ls -as isabus.efi
Directory of: fs0:\
06/18/01 10:59p 28,739 IsaBus.efi
1 File(s) 28,739 bytes
0 Dir(s)
* To display all files in the fs0:\efi directory recursively:
fs0:\〉 ls -r -a efi
* To display all files with the '*.efi' extension recursively one screen at
a time:
fs0:\〉 ls -b -r -a *.efi
沒有留言:
張貼留言