File system
Display file contents
IX20 User Guide
630
Display file contents
This procedure is not available through the WebUI. To display the contents of a file by using the Admin
CLI, , use the
command, specifying the name of the directory.
For example:
Command line
1. Log into the IX20 command line as a user with Admin access.
Depending on your device configuration, you may be presented with an
Access selection
menu
. Type
admin
to access the Admin CLI.
2. At the Admin CLI prompt, type
more /
path
/
filename
. For example, to view the contenct of the
file
accns.json
in
/etc/config
:
> more /etc/config/accns.json
{
"auth":
"user": {
"admin": {
"password":
"$2a$05$W1sls1oxsadf/n4J0XT.Rgr6ewr1yerHtXQdbafsatGswKg0YUm"
}
}
},
"schema": {
"version": "461"
}
}
>
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.
Copy a file or directory
This procedure is not available through the WebUI. To copy a file or directory by using the Admin CLI,
use the
command, specifying the existing path and filename followed by the path and filename of
the new file, or specifying the existing path and directory name followed by the path and directory
name of the new directory.
Command line
1. Log into the IX20 command line as a user with Admin access.
Depending on your device configuration, you may be presented with an
Access selection
menu
. Type
admin
to access the Admin CLI.
2. At the Admin CLI prompt, type
cp /
path
/
filename
|
dir_name
/
path
[
filename
]
|
dir_name
. For
example: