Page 82
7950 SR OS Basic System Configuration Guide
File Commands
.. —
Signifies the parent directory. This can be used in place of an actual directory name in a
directory-url
.
directory-url —
The destination directory.
copy
Syntax
copy source-file-url dest-file-url
[
force
]
Context
file
Description
This command copies a file or all files in a directory from a source URL to a destination URL. At least one
of the specified URLs should be a local URL. The optional wildcard (*) can be used to copy multiple files
that share a common (partial) prefix and/or (partial) suffix.
When a file is copied to a destination with the same file name, the original file is overwritten by the new file
specified in the operation. The following prompt appears if the destination file already exists:
“Overwrite destination file (y/n)?”
For example:
To copy a file named
srcfile
in a directory called
test
on to a file called
destfile
in a directory called
production
on
cf1
, the syntax is:
sr1>file :\ # copy cf2-/test/srcfile/production/destfile
To FTP a file named
121201.cfg
in directory
mydir
stored on
cf1
to a network FTP server
with IP address 131.12.31.79 in a directory called
backup
with a destination file name
of
121201.cfg,
the FTP syntax is:
copy /mydir/121201.cfg 131.12.31.79/backup/121201.cfg
Parameters
source-file-url —
The location of the source file or directory to be copied.
dest-file-url —
The destination of the copied file or directory.
force —
Forces an immediate copy of the specified file(s).
file copy force
executes the command without displaying a user prompt message.
delete
Syntax
delete file-url
[
force
]
Context
file
Description
This command deletes the specified file.
The optional wildcard “*” can be used to delete multiple files that share a common (partial) prefix and/or
(partial) suffix. When the wildcard is entered, the following prompt displays for each file that matches the
wildcard:
“Delete file <filename> (y/n)?”
Summary of Contents for 7950 XRS Series
Page 8: ...Page 8 7950 SR OS Basic System Configuration Guide List of Tables...
Page 10: ...Page 10 7950 SR OS Basic System Configuration Guide List of Figures...
Page 14: ...Preface Page 14 7950 SR OS Basic System Configuration Guide...
Page 46: ...VI Editor Page 46 7950 SR OS Basic System Configuration Guide...
Page 76: ...File Management Tasks Page 76 7950 SR OS Basic System Configuration Guide...
Page 78: ...File Command Reference Page 78 7950 SR OS Basic System Configuration Guide...
Page 172: ...Basic CLI Commands Page 172 7950 SR OS Basic System Configuration Guide...
Page 184: ...Configuration Notes Page 184 7950 SR OS Basic System Configuration Guide...
Page 214: ...DNS Configuration Commands Page 214 7950 SR OS Basic System Configuration Guide...
Page 220: ...Show Commands Page 220 7950 SR OS Basic System Configuration Guide...
Page 494: ...System Commands Page 494 7950 SR OS Basic System Configuration Guide...
Page 500: ...Standards and Protocols Page 500 Standards and Protocols...