File System Management
Basic System Configuration Guide 183
To FTP a file named 121201.cfg in directory mydir stored on cf1 in slot A 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 cf1-A/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). 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)?”
Parameters file-url — The file name to delete.
Values
force — Forces an immediate deletion of the specified file(s). The command file delete * force
deletes all the wildcard matching files without displaying a user prompt message.
dir
Syntax dir [file-url] [sort-order {d | n | s}] [reverse]
Context file
Description This command displays a list of files and subdirectories in a directory.
Parameters file-url — The path or directory name.
local-url | remote-url 255 chars max
local-url [cflash-id/][file-path]
remote-url [ftp://login:pswd@remote-locn/][file-path]
cf1:,cf1-A:,cf1-B:,cf2:,cf2-A:,cf2-B:,cf3:,cf3-A:,cf3-B: