
Creating and Managing Files
©2008 Allied Telesis Inc. All rights reserved.
6.2
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
Software Version 5.2.1
Introduction
This chapter provides information on:
■
Working with files
■
Creating and Using Configuration Files
■
Copying Files To and From Your Device
Working with files
The AlliedWare Plus OS lets you create directory trees for file storage. This section shows:
■
“Listing files” on page 6.2
—listing files and seeing how much free space you have
■
“Displaying the contents of configuration and text files” on page 6.4
■
“Navigating through the file system” on page 6.4
—identifying the current directory,
changing directories, and creating and deleting directories
■
“Using the editor” on page 6.6
Flash compaction
The flash memory on the switch automatically compacts itself to recover space available from
deleted files. The switch only does this when necessary, and not every file deletion causes flash
compaction. Flash compaction can occur after a file of any size is added to or deleted from the
switch.
While flash is compacting, the console is unresponsive. Do not restart the switch, as
interrupting flash compaction can damage files.
Listing 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:
Listing files including hidden system files
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
-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