[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to Edit Files in Linux

Posted on 2016-08-19
6
Medium Priority
?
168 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
 
LVL 1

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
 
LVL 1

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
 
LVL 1

Author Comment

by:Member_2_7966113
ID: 41763221
I keep on getting the following error message:
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
LVL 1

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 2000 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
 
LVL 1

Author Closing Comment

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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

830 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