Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Meaning, you have already an opened session running editing process e.g vi, vim,etc.
Just delete ".swp" file on it and it should work. To check use ls -al on the current directory to look for .swp file
The first screen shot says that someone may already be updating the file. That means the file is already open. Or that it has not been cleanly closed and hence the swap file remains.
Now when you open it in vi forcefully, it opens and now you can edit it and save it.
Just copy the contents kirukan has given, edit them to your needs and save the file. It should be done.
then just edit the ifcfg0:0 to your needs. also you can add more ips by creating files like this
so that how to add more IPs to eth0.
On your vi issue like they said delete the swap file if you know nobody else is in the file. if you used ctrl+c and then try to vi into the file again you will get the issue. so aways use some close command like
ZZ to save
:q to quit
:q! to quit with out save modifications.