Solved

How to Edit Files in Linux

Posted on 2016-08-19
6
108 Views
Last Modified: 2016-09-01
Hello Experts,

Can someone let me know how edit a file called NETMAP shown in the image. How to use the Linux machine is shown here

http://91sec.blogspot.co.uk/2014/03/my-cisco-iou-racks-from-flyxj-iouv3.html



netmap
Cheers

Carlton
0
Comment
Question by:Member_2_7966113
  • 5
6 Comments
 

Author Comment

by:Member_2_7966113
ID: 41763214
ok. I understand that to access the NETMAP file is with issuing the command vi NETMAP. However, to make changes I need to be in 'write' mode. Can someone let me know how to enter write mode?

Cheers
0
 

Author Comment

by:Member_2_7966113
ID: 41763217
So, I'm presented with the following screen when I enter vi NETMAP. I want to edit the file so I type E but when I try to save the file with the command qw I get them message that I'm not in editor mode.

Any thoughts?

netmap
0
 

Author Comment

by:Member_2_7966113
ID: 41763221
I keep on getting the following error message:
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Author Comment

by:Member_2_7966113
ID: 41763225
I keep on getting the error message:

E492: Not an editor command: qw
netmap3.png
0
 
LVL 40

Accepted Solution

by:
omarfarid earned 500 total points
ID: 41763389
is the file NETMAP a text file? only text files can ve edited with vi. Please run below command a post out put:

file NETMAP

if you are in vi edit mode then to be able to save and exit you need to go to command mode. Press ESC button then you can type

:w NETMAP1
:q

The above will let you save to a new file called NATMAP1 the quit
0
 

Author Closing Comment

by:Member_2_7966113
ID: 41780379
That allowed me to edit and save. Thanks
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
extended monitor print screen 8 33
Access bios on restart 11 53
Keep Ditto Clipboard Manager open for multiple pastes 6 36
Do hyper-v and VMware clash 4 56
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question