Dir - H3C S6550X-HI Series Command Reference Manual

Table of Contents

Advertisement

dir

Use
to display files or directories.
dir
Syntax
dir [ /all ] [ file | directory | /all-filesystems ]
Views
User view
Predefined user roles
network-admin
Parameters
: Displays all files and directories in the current directory, visible or hidden. If you do not specify
/all
this option, only visible files and directories are displayed.
: Displays a specific file. This argument can use the asterisk (
file
display files with the .txt extension in the current directory, enter
directory
/all-filesystems
device.
Usage guidelines
If no option is specified, the command displays all visible files and directories in the current directory.
The directory name of the recycle bin is
following methods:
Execute the
Execute the
If multiple users perform file operations (for example, creating or deleting files or directories) at the
same time, the output for this command might be incorrect.
Examples
# Display information about all files and directories in the current directory.
<Sysname> dir /all
Directory of flash:/
...
# Display files and directories in the root directories of all file systems on the device.
<Sysname> dir /all-filesystems
Directory of flash:/
...
Directory of usba0:/
...
Table 1 Command output
Field
Directory of
: Displays a specific directory.
: Displays files and directories in the root directories of all file systems on the
dir /all .trash
command and then the
cd .trash
Description
Current directory.
. To display files in the recycle bin, use either of the
.trash
command.
command.
dir
6
) as a wildcard. For example, to
*
.
dir *.txt

Advertisement

Table of Contents
loading

Table of Contents