Alcatel-Lucent 060321-10, Rev. B Cli Reference Manual page 2200

Omniswitch series
Table of Contents

Advertisement

cp
cp
Copies an existing file. This command can also copy a directory if the -r keyword is used.
cp [options] source destination
Syntax Definitions
options
source
destination
Defaults
N/A
Platforms Supported
OmniSwitch 10K
Usage Guidelines
You should verify that the /flash directory of your switch has enough available memory to hold the
copies of the files and directories created.
A file can be copied to a new directory location. Copy of a file can also be created in the same
directory that contains the original file.
Separate the multiple directory names that are part of the path with a slash (/). Refer to the examples
below.
This command can also be used on the secondary CMM.
Examples
-> cp flash/snapshots/asc.1.snap flash/snapshot/snapshot_copy
-> cp flash/snapshots/asc.1.snap snapshot_copy
-> cp asc.1.snap flash/snapshot/snapshot_copy
-> cp asc.1.snap snapshot_copy
-> cp ?
BusyBox v1.16.1 (2010-12-06 23:23:38 PST) multi-call binary.
Usage: cp [OPTIONS] SOURCE DEST
Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY
Options:
-a
-R,-r
-d,-P
-L
page 42-12
Use the '?' on the command line for a list of options.
The name of the existing file to be copied.
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.
Same as -dpR
Recurse
Preserve symlinks (default if -R)
Follow all symlinks
File Management Commands
OmniSwitch CLI Reference Guide
March 2011

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omniswitch 10k

Table of Contents