C613-50631-01 Rev A Command Reference for IE340 Series 166
AlliedWare Plus™ Operating System - Version 5.5.3-0.x
FILE AND CONFIGURATION MANAGEMENT COMMANDS
EDIT
edit
Overview This command opens a text file in the AlliedWare Plus™ text editor. Once opened
you can use the editor to alter to the file.
If you specify a filename and the file already exists, then the editor opens it in the
text editor.
If you do not enter a filename, the editor opens an empty file and prompts you for
a name when you exit the editor.
For information about using the editor, including control sequences, see the File
Management Feature Overview and Configuration Guide.
Syntax
edit [<filename>]
edit <remote-file>
Mode Privileged Exec
Usage notes Note that files in remote filesystems cannot be edited from the text editor (e.g. files
on a TFTP server). Such files will open read-only.
Before starting the editor make sure your terminal, terminal emulation program, or
Telnet client is 100% compatible with a VT100 terminal. The editor uses VT100
control sequences to display text on the terminal.
Examples To create and edit a new text file, use the command:
awplus# edit
To edit the existing configuration file myconfig.cfg stored on your device’s Flash
memory, use the command:
awplus# edit myconfig.cfg
To edit the file example.cfg stored in a directory called backups on a USB stick, use
the command:
awplus# edit usb:/backups/example.cfg
To view the file bob.cfg stored in configs directory of a TFTP server, use the
command:
awplus# edit tftp://configs/bob.cfg
Parameter Description
<filename> The name of a file in the local Flash filesystem.
<remote-file> The filename and path of the remote file. See Introduction on
page 137 for valid syntax.