LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 06-02-2002, 07:15 AM   #1
a_hic
LQ Newbie
 
Registered: May 2002
Distribution: Fedora, Knoppix,
Posts: 17

Rep: Reputation: 0
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?
 
Old 06-02-2002, 08:31 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It looks like you have killed vi when editing the file etc. If no changes are lost, you can safely delete the .swp file.
 
Old 06-02-2002, 09:06 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I have a quick semi-related question. Why are you using vi?
 
Old 06-02-2002, 09:25 AM   #4
a_hic
LQ Newbie
 
Registered: May 2002
Distribution: Fedora, Knoppix,
Posts: 17

Original Poster
Rep: Reputation: 0
I am using vi to edit ld.so.conf, in order to add a path to this file,
this is for installing dsniff.
 
Old 06-02-2002, 09:42 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
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.
 
Old 06-02-2002, 12:53 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
But vim fans are sometimes annoying. Especially when vim is the only one editor on installation/rescue cd.
 
Old 06-02-2002, 02:05 PM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 06-02-2002, 02:50 PM   #8
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
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.
 
Old 06-03-2002, 11:27 AM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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.
 
Old 06-03-2002, 01:10 PM   #10
Dunkalis
Member
 
Registered: Jun 2002
Distribution: Debian Woody
Posts: 30

Rep: Reputation: 15
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.
 
Old 06-03-2002, 01:26 PM   #11
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 06-03-2002, 01:45 PM   #12
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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...
 
Old 06-06-2002, 04:48 AM   #13
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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.
 
Old 06-07-2002, 10:35 AM   #14
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
That's why I don't know why there is usually only vim available by default...
 
Old 06-07-2002, 01:03 PM   #15
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 18.04, Bodhi 5.0
Posts: 691

Rep: Reputation: 45
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 !!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening a .bin file? musichris777 Linux - Newbie 10 06-21-2007 09:21 PM
FC4 not booting w/ message "ERROR opening /dev/console!!!!: 20" Dimension User Fedora 5 10-24-2005 05:03 PM
Opening a .bin file? musichris777 Red Hat 3 09-15-2005 01:10 PM
Opening a file with OpenOffice jinksys Linux - Software 1 05-06-2004 11:34 AM
error opening file juanb Linux - Software 2 12-09-2003 05:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration