Cisco Cisco Packet Data Interworking Function (PDIF)
StarOS Management Operations
Maintaining the Local File System ▀
VPC-VSM System Administration Guide, StarOS Release 19 ▄
97
Maintaining the Local File System
Use StarOS CLI commands to manage and maintain the devices that make up the local file system. Execute all the
commands described in this section in the Exec Mode. Unless otherwise specified, you must have security administrator
or administrator privileges to execute these commands.
commands described in this section in the Exec Mode. Unless otherwise specified, you must have security administrator
or administrator privileges to execute these commands.
File System Management Commands
Use the commands in this section to manage and organize the local file system.
Important:
For complete information on the following commands, see the Exec Mode Commands chapter of the
Command Line Interface Reference.
Creating Directories
Use the mkdir command to create a new directory on the specified local device. This directory can then be incorporated
as part of the path name for any file located in the local file system.
as part of the path name for any file located in the local file system.
[local]host_name# mkdir { /flash | /hd-raid } /dir_name
Use the following command to create a directory named configs:
[local]host_name# mkdir /flash/configs
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.
same file extension, if applicable, to ensure that the file type remains unchanged.
[local]host_name# rename { /flash | /hd-raid } /src_filename { /flash | /hd-raid
} /dst_filename [-noconfirm]]
} /dst_filename [-noconfirm]]
Use the following command to rename the file 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
Important:
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.
Copying Files
These instructions assume that you are at the root prompt for the Exec mode:
[local]host_name#
To save your current configuration, enter the following command: