Alcatel Carrier Internetworking Solutions omniswitch Switch User Manual


 
Managing System Files File and Directory Management
OmniSwitch 6600 Family Switch Management Guide March 2005 page 2-15
Move an Existing File or Directory
The move and mv commands have the same function and use the same syntax. Use these commands to
move an existing file or directory to another location. You can specify the path and name for the file or
directory being moved. If no path is specified, the command assumes the current path. You can also
specify a path and a new name for the file or directory being moved. If no name is specified, the existing
name will be used.
Note. Your login account must have write privileges to use the move or mv command.
In this first example, the user’s current directory is the flash directory. The following command syntax
moves the testfile2 file from the user created testfiles directory into the working directory as shown in the
illustration above. The screen displays a warning that the file is being renamed (or in this case, redirected).
-> move /flash/testfiles/testfile2 /flash/working/testfile2
WARNING:renaming file /flash/testfiles/testfile2 -> /flash/working/testfile2
In the next example, the user’s current directory is the /flash/testfiles directory as shown in the illustration,
so it is not necessary to specify a path for the file being copied. However, the command syntax specifies a
path to the destination directory. The screen displays a warning that the file is being renamed.
-> move testfile2 /flash/working/newtestfile2
WARNING:renaming file /flash/working/newtestfile2 -> /flash/working/newtestfile2
In this third example, the user’s current directory is the flash directory. Here, it is not necessary to specify
a path for the destination file but a path must be specified for the original file. The screen displays a
warning that the file is being renamed.
-> move /flash/testfiles/testfile2 newfile2
WARNING: renaming file /flash/testfiles/testfile2 -> /flash/testfiles/newfile2
In each of the above examples, a new file will be written to the specified or assumed path with the new
filename. In each case, the file being copied will be removed from its original location.
Flash Directory
Certified Directory
Working Directory
Testfiles Directory
(Files)
(Files)
(File)
Network Directory
policy.cfg
(File)
testfile2