Copying system files, Displaying text files, Copying system files -6 – Alcatel Carrier Internetworking Solutions Omni Switch/Router User Manual
Page 192: Displaying text files -6
![background image](/manuals/39732/192/background.png)
Copying System Files
Page 7-6
Copying System Files
You can use the
cp
command to copy files. This is particularly useful if you want to make
backups of important files. To use this command, enter
cp
, followed by the name of the origi-
nal file you want to copy, and then by the name that you wish to give the duplicate file. For
example, to make a duplicate of the file
mpx.cmd
that is to be called
mpx.bak
, enter
cp mpx.cmd mpx.bak
at the system prompt. The following information will be displayed:
/flash/mpx.cmd -> /flash/mpx.bak : 100%
Displaying Text Files
You can use the
view
command to display the contents of
ASCII
(text-based) files. To use this
command, enter
view
, followed by the name of the file you want to display. To display the
mpx.cmd
file, for example, enter
view mpx.cmd
at the system prompt. A screen similar to the one shown below will be displayed.
cmDoDump=1
cmInit
Note that if you try to view a file with non-
ASCII
characters, an error message will be
displayed. For example, if you use the
view
command on the file
mpm.cfg
, the following error
message will appear:
The file mpm.cfg has non-printable characters, can't view
♦ Note ♦
You can edit text files with the
edit
sub-menu
commands, which are described in Editing Text Files
on page 7-7.