System information
37
How to work with files
How to use the editor
The inbuilt editor is JOE (Joe’s Own Editor).
To edit an existing file, enter Privileged Exec mode and enter the command:
edit <filename>
To open the editor with a empty file, enter the command:
edit
When you save the new file, you may need to specify the file system to store it on. For Flash,
use flash:<filename>.
Using JOE To format and manipulate text in JOE, you use control-character sequences. The following
table summarises a few useful sequences—for details, see:
joe-editor.sourceforge.net/manpage.html.
Function Control-character sequence
Access the help Ctrl-K-H
Save the file without exiting (for new files, this prompts for a
filename)
Ctrl-K-D
Save the file and exit (this prompts for a filename) Ctrl-K-X
Exit without saving the file Ctrl-C
Go to the beginning of the file Ctrl-K-U
Go to the end of the file Ctrl-K-V
Go up one screenful of text in the file Ctrl-U
Go down one screenful of text in the file Ctrl-V
Select a block of text:
Mark the beginning of the block Ctrl-K-B
Mark the end of the block Ctrl-K-K
Copy and paste a selected block of text Place cursor at destination then
enter Ctrl-K-C
Move a selected block of text Place cursor at destination then
enter Ctrl-K-M
Delete a selected block of text Ctrl-K-Y