Solved

How to Edit Files in Linux

Posted on 2016-08-19
6
99 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Several part series to implement Internet Explorer 11 Enterprise Mode
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…

920 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now