
File and Directory Management Managing System Files
page 1-6 OmniSwitch 6250/6450 Switch Management Guide May 2012
To list all the 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 315 Jan 5 09:38 boot.params
drw 2048 Jan 5 09:22 certified/
drw 2048 Jan 5 09:22 working/
-rw 12 Dec 18 2030 boot.slot.cfg
drw 2048 Dec 27 2030 switch/
-rw 64000 Jan 5 09:37 swlog1.log
-rw 64000 Dec 27 2030 swlog2.log
-rw 256 Dec 27 2030 random-seed
drw 2048 Dec 18 2030 network/
40208384 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 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).
Comentarios a estos manuales