Command Reference File System Commands
3 -rw- 10485760 Jan 03 2012 18:13:37 rpmdb
3 files, 0 directories
10,490,192 bytes total (13,192,656 bytes free)
Use this command to delete an empty directory.
rmdir [ filesystem: ] directory
The URL of file system, followed by a colon (:). The file system
includes flash:, usb: and tmp:.
The path name. A file name starts with “/” is an absolute path.
Otherwise, it is a relative path.
The default filesystem: is flash:.
The following example deletes the null test directories.
Ruijie#mkdir newdir
Ruijie#dir
Directory of flash:/
1 -rw- 336 Jan 03 2012 18:53:42 fstab
2 -rw- 4096 Jan 03 2012 12:32:09 rc.d
3 -rw- 10485760 Jan 03 2012 18:13:37 rpmdb
4 drw- 4096 Jan 03 2012 18:13:37 newdir
3 files, 1 directories
10,494,228 bytes total (13,188,560 bytes free)
Ruijie#rmdir newdir
removed dir flash:/newdir
Ruijie#dir
Directory of flash:/
1 -rw- 336 Jan 03 2012 18:53:42 fstab