Managing directories, Displaying directory information, Displaying the current working directory – H3C Technologies H3C S12500 Series Switches User Manual

Page 102: Changing the current working directory, Creating a directory, Removing a directory

Advertising
background image

90

Managing directories

You can create or remove a directory, and display the current working directory, the specified directory,
and file information.

Displaying directory information

Perform this task in user view.

Task Command

Display directory or file information.

dir [ /all ] [ file-url | /all-filesystems ]

Displaying the current working directory

Perform this task in user view.

Task Command

Display the current working directory.

pwd

Changing the current working directory

Perform this task in user view.

Task Command

Change the current working directory.

cd { directory | .. | / }

Creating a directory

Perform this task in user view.

Task Command

Create a directory.

mkdir directory

Removing a directory

To remove a directory, you must delete all the files and the subdirectory in this directory. To delete a file,
use the delete command; to delete a subdirectory, use the rmdir command.
The rmdir command automatically deletes the files in the recycle bin in the current directory.
Perform this task in user view.

Advertising