Linux - Newbie This 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! |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-02-2002, 07:15 AM
|
#1
|
LQ Newbie
Registered: May 2002
Distribution: Fedora, Knoppix,
Posts: 17
Rep:
|
message when opening file?
I've added a path to /etc/ld.so.conf using vi, when i reopen it I get:
"Found a swap file by the name ".ld.so.conf.swp"
dated: Sun Jun 2 10:56:29 2002
owned by: root
file name: /etc/ld.so.conf
modified: YES
host name: HIC
user name: root
process ID: 1318
While opening file "ld.so.conf"
dated: Sun Jun 2 11:51:04 2002
(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r ld.so.conf"
to recover the changes (see ":help recovery)".
If you did this already, delete the swap file ".ld.so.conf.swp"
to avoid this message. "
what mean this?
|
|
|
06-02-2002, 08:31 AM
|
#2
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
It looks like you have killed vi when editing the file etc. If no changes are lost, you can safely delete the .swp file.
|
|
|
06-02-2002, 09:06 AM
|
#3
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
I have a quick semi-related question. Why are you using vi?
|
|
|
06-02-2002, 09:25 AM
|
#4
|
LQ Newbie
Registered: May 2002
Distribution: Fedora, Knoppix,
Posts: 17
Original Poster
Rep:
|
I am using vi to edit ld.so.conf, in order to add a path to this file,
this is for installing dsniff.
|
|
|
06-02-2002, 09:42 AM
|
#5
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
one would guess he is using vi because he likes it. it's an indiviual choice... you may prefer write or whatever... i use pico.
|
|
|
06-02-2002, 12:53 PM
|
#6
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
But vim fans are sometimes annoying. Especially when vim is the only one editor on installation/rescue cd.
|
|
|
06-02-2002, 02:05 PM
|
#7
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Quote:
Originally posted by MasterC
I have a quick semi-related question. Why are you using vi?
|
I would suggest anyone using *nix to learn vi, first its available on about any *nix OS, second, there might be times when you only have vi or vim to use to edit any files.
I use vi and prefer it, its quick and easy to use.
|
|
|
06-02-2002, 02:50 PM
|
#8
|
Member
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696
Rep:
|
vi=toughest text editor on planet for me. I made some notes for myself to look 'em up everytime I need to edit crontab, other than that never use it.
pico is my favourite.
|
|
|
06-03-2002, 11:27 AM
|
#9
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
Quote:
Originally posted by trickykid
I would suggest anyone using *nix to learn vi, first its available on about any *nix OS, second, there might be times when you only have vi or vim to use to edit any files.
I use vi and prefer it, its quick and easy to use.
|
I disagree. It took me 2 months to remember how to exit it (in that time, when I had started it by accident I just switched to another console and killed it...). I KNOW it may be easy and powerful, but only if you know all the keys! I don't have enought time to learn them... That's why I prefer joe (and it's help).
Last edited by Mara; 06-03-2002 at 11:28 AM.
|
|
|
06-03-2002, 01:10 PM
|
#10
|
Member
Registered: Jun 2002
Distribution: Debian Woody
Posts: 30
Rep:
|
I personally prefer Nano. Nice and easy. I still need to get Pico, though. Pico is nice. I've heard good things about Emacs, but I've never used it.
|
|
|
06-03-2002, 01:26 PM
|
#11
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Quote:
Originally posted by Mara
I disagree. It took me 2 months to remember how to exit it (in that time, when I had started it by accident I just switched to another console and killed it...). I KNOW it may be easy and powerful, but only if you know all the keys! I don't have enought time to learn them... That's why I prefer joe (and it's help).
|
Well I don't mean you have to use it for all your editing, I just suggest anyone to get some basics of it so if your ever stuck in that situation where you have to use it, then your not totally stuck. 
|
|
|
06-03-2002, 01:45 PM
|
#12
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
Quote:
Originally posted by trickykid
Well I don't mean you have to use it for all your editing, I just suggest anyone to get some basics of it so if your ever stuck in that situation where you have to use it, then your not totally stuck.
|
Well, for me it's easier to write my own editor and have its source always with me than to learn vi. Sorry... 
|
|
|
06-06-2002, 04:48 AM
|
#13
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Quote:
Originally posted by trickykid
Well I don't mean you have to use it for all your editing, I just suggest anyone to get some basics of it so if your ever stuck in that situation where you have to use it, then your not totally stuck.
|
Yeah, you are definitely right. Today I was installing LFS and during the install I installed VIM. Although I ended up being able to edit it with PICO from my host system, I didn't know that at the time... So I typed vi file. How dumb was that? Now I am in VIM. Stuck. Stuck like no other. Pressing CTRL + C thinking it might kick it out, nope. Finally I remember back to a post I saw once that : was the first part of a command in vi and q was to quit. Woohoo for my memory of VIM. Bad me for not listening to Trickykid earlier 
Last edited by MasterC; 06-06-2002 at 04:49 AM.
|
|
|
06-07-2002, 10:35 AM
|
#14
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
That's why I don't know why there is usually only vim available by default...
|
|
|
06-07-2002, 01:03 PM
|
#15
|
Member
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 18.04, Bodhi 5.0
Posts: 691
Rep:
|
Quote:
I would suggest anyone using *nix to learn vi, first its available on about any *nix OS, second, there might be times when you only have vi or vim to use to edit any files.
|
I would amend that to say " ... anyone using *nix as a profession to learn vi, ... ". Beyond that there are any number of editors (jed, xjed, joe, and others) that are just as powerful and many times easier to use.
But that's just me  !!
|
|
|
All times are GMT -5. The time now is 04:25 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|