Ls/dir – HP Unified Extensible Firmware Interface User Manual

Page 37

Advertising
background image

command-name

is the name of the shell command. The files follow a subset of the MAN page

format, as described below.

If no option is specified, then only the NAME section of the page appears.

Example

To display the list of commands in the UEFI Shell and break after one screen:

Shell> help –b
alias - Displays, creates, or deletes UEFI Shell aliases.
attrib - Displays or changes the attributes of files or directories.
cd - Displays or changes the current directory.
cls - Clears standard output and optionally changes background color.
comp - Compares the contents of two files on a byte for byte basis.

To display help information about the shell command ls (use any of the following syntax options):

Shell> help ls
Shell> ? ls
Shell> ls -?

To display the list of commands starting with the character p:

Shell> help p*
pause – Prints a message and suspends for keyboard input

ls/dir

Lists the contents of a directory or file information.

Syntax

ls

[-r] [-a[attrib]] [-sfo] [file]

Options

-r

Displays recursively (including subdirectories)

-a attrib

Displays only those files with the attributes specified. If no attributes are specified,
then all files are listed. If –a is not specified, then all non-system and non-hidden
files are listed. The attributes (attrib) can be one or more of the following:

a

—Archive

s

—System

h

—Hidden

r

—Read-only

d

—Directory

-sfo

Displays in standard-format output. For more information, see

“Output details—ls

command (volume information)” (page 39)

, and

“Output details—ls command

(file information)” (page 39)

.

file

Specifies the name of a file or directory. Wild cards are permitted.

UEFI Shell commands

37

Advertising
This manual is related to the following products: