Alcatel-Lucent 6850-48 Reference Guide

Page of 3444
File Management Commands
OmniSwitch CLI Reference Guide
September 2009
page 7-23
mv
Moves an existing file or directory to a new location.
mv {[path/]filename dest_path[/new_filename] | [path/]dir dest_path[/new_dir]}
Syntax Definitions
path/
Specifies the path (i.e., location) containing the file or directory being 
moved. If no path name is specified, the command assumes the current 
path.
filename
Specifies the name of the existing file to be moved. 
dest_path/
Specifies the destination path (i.e., new location) for the file or direc-
tory that is being moved.
new_filename
Specifies a new file name for the file being moved. If a new name is not 
specified, the existing name will be used.
dir
Specifies the name of the existing directory to be moved. 
new_dir
Specifies a new directory name for the directory being moved. If a new 
name is not specified, the existing name will be used.
Defaults
N/A
Platforms Supported
OmniSwitch 6400, 6850, 6855, 9000, 9000E
Usage Guidelines
• The mv command does not make a copy of the file or directory being moved. To copy a file or direc-
tory to the current path or to a new location, use the 
• Be sure to separate path directories and file names with a slash (/). Refer to the examples below.
• Up to 255 characters may be used for a fully qualified path.
• A path can contain up to a maximum of seven (7) directories including /flash
• As with files names, up to thirty-two (32) characters may be used for a directory name.
• File and directory names can include only the following character types: a-z, A-Z, 0-9, dashes (-), 
dots (.), and underscores (_).
• This command can also be used on the secondary CMM.
Examples
-> mv flash/asc.1.snap flash/backup_files/asc.1.snap