LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 08: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, 09:31 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
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, 10:06 AM   #3
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
I have a quick semi-related question. Why are you using vi?
 
Old 06-02-2002, 10: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, 10:42 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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, 01:53 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

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

Rep: Reputation: 199Reputation: 199
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, 03: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, 12:27 PM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

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

Rep: Reputation: 199Reputation: 199
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, 02:45 PM   #12
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
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, 05:48 AM   #13
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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 05:49 AM.
 
Old 06-07-2002, 11:35 AM   #14
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

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

Rep: Reputation: 31
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 10:21 PM
FC4 not booting w/ message "ERROR opening /dev/console!!!!: 20" Dimension User Fedora 5 10-24-2005 06:03 PM
Opening a .bin file? musichris777 Red Hat 3 09-15-2005 02:10 PM
Opening a file with OpenOffice jinksys Linux - Software 1 05-06-2004 12:34 PM
error opening file juanb Linux - Software 2 12-09-2003 06:55 AM


All times are GMT -5. The time now is 08:46 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration