File and Directory Management
Managing System Files
page 2-6
OmniSwitch 6600 Family Switch Management Guide
April 2006
To list all the files and directories in your current directory, use the
command. Here is a sample display
of the flash directory.
-> ls
Listing Directory /flash:
drw 512 Oct 25 14:39 certified/
drw 512 Jul 15 14:59 NETWORK/
drw 512 Oct 25 14:17 WORKING/
-rw 321 Oct 25 14:39 boot.params
-rw 163258 Oct 2 11:04 cs_system.pmd
-rw 11 Jul 30 14:09 boot.slot.cfg
-rw 693 Oct 9 11:55 boot.cfg.1.err
-rw 0 Oct 28 11:14 swlog1.log
-rw 64000 Oct 28 15:51 swlog2.log
9467904 bytes free
The following information describes the screen displayed by the
command:
•
The first column consists of three text characters. The first character indicates whether the row entry is
a file (-) or a directory (d). The second and third characters indicate the user’s read/write permissions.
drw 512 Oct 25 14:17 WORKING/
-rw 321 Oct 25 14:39 boot.params
Here, the first entry shows a directory (d) for which the user has read and write (rw) permissions. The
second entry shows a file (-) for which the user has read and write (rw) permissions.
•
The second column indicates the number of bytes of flash memory the row entry occupies.
drw 512 Oct 25 14:17 WORKING/
-rw 321 Oct 25 14:39 boot.params
Here, the first entry shows that the directory uses 512 bytes of flash memory. The second entry shows
that the file occupies 321 bytes of flash memory.
•
The third, fourth, and fifth columns show the date and time the row entry was created or copied into the
flash directory.
drw 512 Oct 25 14:17 WORKING/
-rw 321 Oct 25 14:39 boot.params
Here, the first entry indicates the file was created or copied on April 22 at 05:23 hours. The second
entry indicates that the directory was created or copied on April 19 at 06:12 hours.
•
The column on the right lists the file or directory name. Note that directory names end with a slash (/)
character.
drw 512 Oct 25 14:17 WORKING/
-rw 321 Oct 25 14:39 boot.params
Here, the first entry shows a directory named WORKING, the second entry shows a file named
boot.params.
The value shown at the bottom of the display indicates the amount of flash memory remaining for use in
this directory (9.47 megabytes in the above example).