User guide
Managing System Files Application Examples for File Management
OmniSwitch 7700/7800/8800 Switch Management Guide April 2006 page 2-27
Application Examples for File Management
The following sections give detailed examples of managing files and directories on the switch.
Creating a File Directory on the Switch
In this example, the user wants to store several test files on the switch for use at a later date. The user has
loaded the files into the switch’s /flash/working directory using FTP. Rather than leaving the files in the
working directory, the user may want to create a new directory. The following steps describe how to
create a directory on the switch, how to transfer files into the directory, and how to list the files.
1 Log onto the switch and use the mkdir command to create a new directory called “resources”.
-> mkdir resources
2 Verify that the new directory was created by using the ls command. The “resources” directory is listed.
-> ls
Listing Directory /flash:
-rw 308 Feb 5 13:33 boot.params
drw 2048 Feb 4 10:45 certified/
drw 2048 Feb 5 16:24 working/
-rw 64000 Feb 5 16:19 swlog1.log
-rw 64000 Feb 5 14:05 swlog2.log
drw 2048 Jan 24 07:57 switch/
-rw 30 Feb 19 2023 policy.cfg
drw 2048 Feb 5 16:25 resources/
-rw 0 Jan 24 08:00 boot.cfg
3 Use the ls command to list the contents of the /flash/working directory.
-> ls /flash/working
Listing Directory /flash/working:
drw 2048 Feb 5 17:03 ./
drw 2048 Feb 5 16:25 ../
-rw 880 Jan 31 13:05 boot.cfg
-rw 6 Feb 5 17:03 test1.txt
-rw 6 Feb 5 17:03 test2.txt
-rw 6 Feb 5 17:03 test3.txt
4 Use the mv command to move the test files from /flash/working to /flash/resources.
-> mv test1.txt /flash/resources
-> mv test2.txt /flash/resources
-> mv test3.txt /flash/resources