System information

31
How to work with files
How to work with files
The AlliedWare Plus OS lets you create directory trees for file storage. This section shows:
"How to list files" on page 31—listing files and seeing how much free space you have
"How to navigate through the file system" on page 33—identifying the current directory,
changing directories, and creating and deleting directories
"How to copy files" on page 35—copying within Flash memory, to and from NVS and SD
card, and to and from a TFTP server
"How to use the editor" on page 37
How to list files
To list files, enter Privileged Exec mode and enter the command:
awplus#dir
The output lists files and directories in order of modification date, descending. It looks like
this:
The dir command does not list all files—it hides system files and directories because users
generally do not need to create or edit them. To list all files including system files, enter
Privileged Exec mode and enter the command:
awplus#dir all
The output looks like this:
The hidden files and directories begin with a dot.
Listing files
-rw- 534 Jul 12 2007 17:52:50 stp.cfg
-rw- 534 Jul 12 2007 17:12:50 example.cfg
-rw- 12429011 Jul 12 2007 16:26:06 r1-5.2.1-rc3.rel
Listing files including hidden system files
drwx 0 Jul 12 2007 17:16:32 ./
-rw- 401 Jul 12 2007 17:16:32 example.cfg
-rw- 534 Jul 12 2007 17:52:50 stp.cfg
-rw- 12429011 Jul 12 2007 16:26:06 r1-5.2.1-rc3.rel
drwx 216 Jul 9 2007 11:31:18 ../
drwx 0 Jun 13 2007 04:31:51 .configs/
-rw- 17 Jun 13 2007 04:27:27 .release
-rw- 9 Jun 12 2007 23:09:19 .ash_history
drwx 0 Jul 10 1977 23:40:00 .ssh/