Alcatel-Lucent 6850-48 Reference Guide

Page of 3444
File Management Commands
OmniSwitch CLI Reference Guide
September 2009
page 7-19
cp
Copies an existing file. This command can also copy a directory if the -r keyword is used.
cp [-r] [path/]orig_filename [dest_path/]dupl_filename
Syntax Definitions
-r
Syntax that recursively copies directories, as well as any associated 
subdirectories and files. Be sure to include a space between the syntax 
cp and -r (i.e., cp -r). 
path/
Specifies the path containing the original file to be copied. If no path 
name is specified, the command assumes the current path.
orig_filename
The name of the existing file to be copied.
dest_path/
Specifies the destination path for the resulting file copy. If no destina-
tion path is specified, the file copy will be placed in the current path.
dupl_filename
The new user-defined file name for the resulting file copy. If you are 
copying a file to the same directory as the original, the file name for the 
copy must be different from the original. Up to thirty-two (32) charac-
ters may be used.
Defaults
N/A
Platforms Supported
OmniSwitch 6400, 6850, 6855, 9000, 9000E
Usage Guidelines
• You should verify that your switch’s /flash directory has enough available memory to hold the new 
files and directories that will result from using the cp -r command.
• A file may be copied to a new location; you are not required to copy a file to the same directory that 
contains the original.
• 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.