How to Edit Files in Linux

Posted on 2016-08-19
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


Question by:Member_2_7966113
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5

Author Comment

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?


Author Comment

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?


Author Comment

ID: 41763221
I keep on getting the following error message:
Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.


Author Comment

ID: 41763225
I keep on getting the error message:

E492: Not an editor command: qw
LVL 40

Accepted Solution

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:


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


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

Author Closing Comment

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

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

733 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