Displaying directory information
To do… | Use the command… | Remarks | |
Display directory or file | dir [ /all ] [ | Required | |
information | Available in user view | ||
| |||
|
|
|
Displaying the current working directory
To do… | Use the command… | Remarks | |
Display the current working | pwd | Required | |
directory | Available in user view | ||
| |||
|
|
|
Changing the current working directory
To do… | Use the command… | Remarks | |
Change the current working | cd { directory .. / } | Required | |
directory | Available in user view | ||
| |||
|
|
|
Creating a directory
To do… | Use the command… | Remarks | |
Create a directory | mkdir directory | Required | |
Available in user view | |||
|
| ||
|
|
|
Removing a directory
To do… | Use the command… | Remarks | |
Remove a directory | rmdir directory | Required | |
Available in user view | |||
|
| ||
|
|
| |
|
|
|
NOTE:
•The directory to be removed must be empty, meaning that before you remove a directory, you must delete all the files and the subdirectory in this directory. For file deletion, see the delete command; for subdirectory deletion, see the rmdir command.
•The rmdir command automatically deletes the files in the recycle bin in the current directory.
Performing file operations
You can display the specified directory or file information; display file contents; rename, copy, move, remove, restore, and delete files.
101