User guide

File and Directory Management Managing System Files
page 2-6 OmniSwitch 7700/7800/8800 Switch Management Guide April 2006
To list all files and directories in your current directory, use the ls command. Here is a sample display of
the flash directory.
-> ls
Listing Directory /flash:
-rw 290 Apr 22 05:23 boot.params
drw 2048 Apr 19 06:12 certified/
drw 2048 Apr 22 08:01 working/
-rw 64000 Apr 22 05:22 swlog2.log
-rw 64000 Apr 22 07:58 swlog1.log
-rw 4885718 Apr 22 05:23 cs_system.pmd
drw 2048 Apr 2 03:13 network/
drw 2048 Apr 22 08:00 testdir/
drw 2048 Mar 11 00:30 switch/
2351104 bytes free
The following information describes the screen displayed by the ls 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.
-rw 290 Apr 22 05:23 boot.params
drw 2048 Apr 19 06:12 certified/
Here, the first entry shows a file (-) for which the user has read and write (rw) permissions. The second
entry shows a directory (d) 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.
-rw 290 Apr 22 05:23 boot.params
drw 2048 Apr 19 06:12 certified/
Here, the first entry shows that the file uses 290 bytes of flash memory. The second entry shows that
the directory occupies 2048 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.
-rw 290 Apr 22 05:23 boot.params
drw 2048 Apr 19 06:12 certified/
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.
-rw 290 Apr 22 05:23 boot.params
drw 2048 Apr 19 06:12 certified/
Here, the first entry shows a file named boot.params, the second shows a directory named certified.
The value shown at the bottom of the display indicates the amount of flash memory remaining for use in
this directory (2.35 megabytes in the above example).