File system Move or rename a fileor directory
IX20 User Guide
1071
2. At the Admin CLI prompt, typecp /path/filename|dir_name /path[filename]|dir_name. For
example:
n
To copy the file /etc/config/accns.json to a file named backup_cfg.json in adirectory
named /etc/config/test, enter the following:
> cp /etc/config/accns.json /etc/config/test/backup_cfg.json
>
n
To copy a directory named /etc/config/test to /opt:
> cp /etc/config/test/ /opt/
>
3. Type exit to exit the Admin CLI.
Depending on your device configuration, you may be presented with an Access selection
menu. Type quit to disconnect from the device.
Move or rename a file or directory
This procedure isnot available through the WebUI. To move or rename a file or directory by using the
Admin CLI, use the mv command.
Command line
To rename a file named test.py in /etc/config/scriptsto final.py:
1. Select the device in Remote Manager and click Actions> Open Console, or log into the IX20
local command line as a user with full Admin access rights.
Depending on your device configuration, you may be presented with an Access selection
menu. Type admin to accessthe Admin CLI.
2. At the Admin CLI prompt, type:
> mv /etc/config/scripts/test.py /etc/config/scripts/final.py
>
3. Type exit to exit the Admin CLI.
Depending on your device configuration, you may be presented with an Access selection
menu. Type quit to disconnect from the device.
To movetest.py from /etc/config/scriptsto /opt:
1. Select the device in Remote Manager and click Actions> Open Console, or log into the IX20
local command line as a user with full Admin access rights.
Depending on your device configuration, you may be presented with an Access selection
menu. Type admin to accessthe Admin CLI.
2. At the Admin CLI prompt, type:
> mv /etc/config/scripts/test.py /opt/
>