HP Unified Extensible Firmware Interface User Manual

Page 18

Advertising
background image

Example 8 Displaying help for the ls command

Shell> help ls -b
Lists a directory's contents or file information.

LS [-r] [-a[attrib]][-sfo][file]format:
-r - Displays recursively (including subdirectories)
-a - Display only those files with the attributes of type attrib. If no
attributes are listed, then all files will be listed. If -a is not
specified, then all non-system and non-hidden files will be listed.
-sfo - Display information in Standard-Format Output.
attrib - File attribute list:
a - Archive
s - System
h - Hidden
r - Read-only
d - Directory
file - Name of file or directory (wildcards are permitted)

NOTES:
1. This command lists directory contents or file information. If no file
name or directory name is specified, then the current working directory
is assumed.
2. The contents of a directory are listed if all of the following are true:
- If option -r is not specified
- If no wildcard characters are specified in the file parameter
- If file represents an existing directory
3. In all other cases, the command functions as follows:
- All files/directories that match the specified name are displayed.
- The -r flag determines whether a recursive search is performed.
- The option flag -a[attrib] tells the command to display only those
files with the attributes that are specified by [attrib].

For more usage details for the help command, see

“help” (page 36)

.

Displaying all help for commands beginning with a specific character

Use a wildcard (*) to display help for all commands beginning with a specific character.

Example 9

(page 19)

shows how to do this for all commands beginning with the character a.

18

UEFI Shell command reference

Advertising
This manual is related to the following products: