Renaming Files and Directories
Use the
rename
command to change the name of a file from its original name to a different name. Remember
to use the same file extension, if applicable, to ensure that the file type remains unchanged.
Use the following command to rename a file named
iot_test.cfg
to
iot_accept.cfg
on the
/flash
local device.
[local]
host_name
#
rename /flash/iot_test.cfg /flash/iot_accept.cfg -noconfirm
Use the
rename
command only within the same local device. You cannot rename a file and place it onto
another local device at the same time. To move a renamed file, you must use the
copy
command.
Important
Copying Files
These instructions assume that you are at the root prompt for the Exec mode. To save your current configuration,
enter the following command:
[local]
host_name
#
copy from_url to_url [-noconfirm]
To copy a configuration file called
system.cfg
from a directory that was called
cfgfiles
to a directory named
configs_old
, enter the following command:
[local]
host_name
#
copy /flash/cfgfiles/system.cfg /flash/configs_old/system_2011.cfg
To copy a configuration file called
init_config.cfg
to the root directory of a TFTP server with a hostname of
config_server
, enter the following command:
[local]
host_name
#
copy /flash/cfgfiles/init_confg.cfg tftp://config_server/init_config.cfg
Deleting Files
The
delete
command removes a designated file from its specified location on the local file system.
This command does not support wildcard entries; each filename must be specified in its entirety.
Important
Do not delete the boot.sys file. If deleted, the system will not reboot on command and will be rendered
inoperable.
Caution
[local]
host_name
#
delete { /flash | /usb1 | /hd-raid }/filename [ -noconfirm ]
The following command deletes a file named
test.cfg
from the
/flash
directory.
[local]
host_name
#
delete /flash/test.cfg
Removing Directories
The
rmdir
command deletes a current directory on the specific local device. This directory can then be
incorporated as part of the path name for any file located in the local file system.
ASR 5500 System Administration Guide, StarOS Release 21.5
87
Software Management Operations
File System Management Commands
Содержание ASR 5500
Страница 100: ...ASR 5500 System Administration Guide StarOS Release 21 5 74 System Interfaces and Ports VLANs and Management Ports ...
Страница 136: ...ASR 5500 System Administration Guide StarOS Release 21 5 110 Smart Licensing Smart Licensing Bulk Statistics ...
Страница 140: ...ASR 5500 System Administration Guide StarOS Release 21 5 114 Monitoring the System Clearing Statistics and Counters ...
Страница 260: ...ASR 5500 System Administration Guide StarOS Release 21 5 234 Routing Viewing Routing Information ...
Страница 278: ...ASR 5500 System Administration Guide StarOS Release 21 5 252 BGP MPLS VPNs VPN Related CLI Commands ...
Страница 292: ...ASR 5500 System Administration Guide StarOS Release 21 5 266 Session Recovery Sample Output for show rct stats verbose ...
Страница 324: ...ASR 5500 System Administration Guide StarOS Release 21 5 298 Interchassis Session Recovery Fallback Procedure ...
Страница 338: ...ASR 5500 System Administration Guide StarOS Release 21 5 312 Engineering Rules ECMP Groups ...
Страница 362: ...ASR 5500 System Administration Guide StarOS Release 21 5 336 StarOS Tasks Management Processes ...