HP Interface micrologicielle extensible HP Unified Manuel d'utilisation

Page 18

Advertising
background image

Exemple 8 Afficher l'aide pour la commande ls

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].

Pour en savoir plus sur l'utilisation de la commande help, consultez la section

« help » (page 37)

.

Afficher l'aide des commandes commençant par un caractère spécifique

Utilisez un caractère générique (*) pour afficher l'aide pour toutes les commandes commençant
par un caractère spécifique. L'

Exemple 9 (page 19)

montre comment effectuer ceci pour toutes les

commandes commençant par le caractère a.

18

Référence de commande du shell UEFI

Advertising
Ce manuel est liée aux produits suivants: