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
  • 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:
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.


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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
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…
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…

762 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

19 Experts available now in Live!

Get 1:1 Help Now