Hp Unified Extensible Firmware Interface User Manual Page 38

  • Download
  • Add to my manuals
  • Print
  • Page
    / 79
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 37
Description
This command lists directory contents or file information. If no file name or directory name is
specified, then the current working directory is assumed. The contents of a directory are listed if
all of the following are true:
Option -r is not specified
No wild card characters are specified in the file parameter
The file specified represents an existing directory
In all other cases, the command functions as follows:
All files or directories that match the specified name are displayed.
The-r flag determines whether a recursive search is performed.
The option flag -a attrib displays only those files with the attributes specified. If more
than one attribute is specified, only the files that have all those attributes are listed. If -a
is followed by nothing, then all files or directories are displayed, regardless of their
attributes. If -a itself is not specified, then all files except system and hidden files are
displayed.
Examples
To hide files by adding the hidden or system attribute to them:
fs0:\> attrib +s +h *.efi
ASH fs0:\IsaBus.efi
ASH fs0:\IsaSerial.efi
To display all, except the files or directories with the h or the s attribute:
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 files with all attributes 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 <DIR> 512 test
01/28/01 08:24p r 29 readme.txt
5 File(s) 61,788 bytes
4 Dir(s)
To display files with read-only attributes in the current directory:
fs0:\> ls -ar
Directory of: fs0:\
06/18/01 11:14p r 29 readme.txt
38 UEFI Shell command reference
Page view 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 78 79

Comments to this Manuals

No comments