zDisplaying the current work directory, or contents in a specified directory Follow these steps to perform directory-related operations in user view:

 

To do…

Use the command…

Remarks

 

 

Create a directory

mkdir directory

Optional

 

 

 

 

 

 

 

Delete a directory

rmdir directory

Optional

 

 

 

 

 

 

 

Display the current work directory

pwd

Optional

 

 

 

 

 

 

 

Display the information about specific

dir [ /all ] [ file-url]

Optional

 

 

directories and files

 

 

 

 

 

 

 

 

 

 

 

Enter a specified directory

cd directory

Optional

 

 

 

 

 

 

z

z

Only empty directories can be deleted by using the rmdir command.

In the output information of the dir /all command, deleted files (that is, those stored in the recycle bin) are embraced in brackets.

File Operations

The file system also provides file-related functions listed in the following table.

Follow these steps to perform file operations in user view (except the execute command that should be executed in system view):

To do…

Use the command…

Remarks

 

 

Optional

 

delete [ /unreserved ] file-url

A deleted file can be restored

Delete a file

by using the undelete

delete { running-files

command if you delete it by

 

standby-files } [ /unreserved ]

executing the delete command

 

 

without specifying the

 

 

/unreserved keyword.

 

 

 

Restore a file in the

undelete file-url

Optional

recycle bin

 

 

 

 

 

Delete a file from the

reset recycle-bin [ file-url] [ /force ]

Optional

recycle bin

 

 

 

 

 

Rename a file

rename fileurl-source fileurl-dest

Optional

 

 

 

Copy a file

copy fileurl-source fileurl-dest

Optional

 

 

 

Move a file

move fileurl-source fileurl-dest

Optional

 

 

 

 

 

Optional

Display the content of a

more file-url

Currently, the file system only

file

supports displaying the

 

 

 

contents of text files.

 

 

 

Display the information

 

 

about a directory or a

dir [ /all ] [ file-url]

Optional

file

 

 

 

1-2

 

Page 535
Image 535
3Com WX3000 operation manual File Operations