
File and Directory Management
Managing System Files
page 1-14
OmniSwitch 6800/6850/9000 Switch Management Guide
December 2007
To verify the creation of the new directory, use the
ls
-r
command to produce a list of the contents of the
certified directory. This list will include the files that were originally in the certified directory plus the
newly created copy of the working directory and all its contents.
->ls -r /flash/certified
Listing Directory /flash/certified
drw 2048 Oct 12 16:22 ./
drw 2048 Oct 15 10:16 ../
-rw 4347 Oct 2 12:25 boot.cfg
-rw 844217 Oct 25 14:21 Kos.img
-rw 4658 Oct 25 14:21 Krelease.img
Listing Directory /flash/certified/working
drw 2048 Oct 14 17:14 ./
drw 2048 Oct 14 17:12 ../
drw 2048 Oct 14 17:14 newdir1/
-rw 4347 Oct 2 12:25 boot.cfg
-rw 142830 Oct 25 14:17 Ksecu.img
-rw 2743945 Oct 25 14:16 Kbase.img
-rw 844217 Oct 25 14:17 Kos.img
Listing Directory /flash/certified/working/newdir:
drw 2048 Oct 14 17:14 ./
drw 2048 Oct 14 17:14 ../
Removing a Directory and its Contents
The
rmdir
command removes the specified directory and all its contents. If the following command is
issued from the flash directory shown in the drawing on
page 1-8
, the working directory would be
removed from the certified directory.
->rm -r /flash/certified/working
Note.
Your login account must have write privileges to execute the
rmdir
command.