Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a command for editing (or at least viewing) text file content (that is on flash card) ?

share|improve this question
Which text file? – dbasnett Dec 6 '11 at 20:55
up vote 2 down vote accepted

With Cisco IOS, you've got the more command, like on Linux, which you can use to print the content of a file.

The more command shows a text file. This command works just like it does in Linux—it allows youto view a file on a disk. In the case of the Cisco IOS, you can use this command to view a text file, such as your configuration file or a saved backup configuration file. Here's an example:

Router# more nvram:startup-config

share|improve this answer

It is also possible to create a file with TCL scripting:

Router(tcl)#puts [open "flash:test" w+] {
+>This is a test.
+>Line 2.
+>Third line.


Router#more flash:test
This is a test.
Line 2.
Third line.

I'm not a TCL expert, but I think editing is also possible by using the a+ (append) open flag instead of w+, and append instead of puts.

share|improve this answer
pretty cool trick, thanks! – Mat Banik Jan 1 '12 at 19:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.