Display File Contents; Copy A File Or Directory - Digi Connect IT Mini User Manual

Hide thumbs Also See for Connect IT Mini:
Table of Contents

Advertisement

File system

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
more
For example:
  Command line
1. Log into the Connect IT Mini 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
cp
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 Connect IT Mini 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:
Digi Connect IT® Mini User Guide
command, specifying the name of the directory.
Display file contents
541

Advertisement

Table of Contents
loading

Table of Contents