LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-14-2003, 08:50 PM   #1
DTre08
LQ Newbie
 
Registered: Apr 2003
Posts: 17

Rep: Reputation: 0
where to save in VI


Hi

I'm trying to save my "/etc/fstab" file in VI, and i don't know where to type the "save and exit" command. I can't see anyplace to do this in the command mode. What's the secret?
 
Old 07-14-2003, 08:57 PM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
the ":" character switches to command mode

(if it doesn't work press "ESC" and then ":" )

use ":set showmode" to get a visual feedback for your current mode
 
Old 07-14-2003, 10:10 PM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You can not write to that file. Only root or su can. To write in vi you type :w . Hit ESC to get out of editing mode.
 
Old 07-15-2003, 02:17 AM   #4
jlangelier
Member
 
Registered: Jun 2003
Location: Denver, CO
Distribution: Debian
Posts: 95

Rep: Reputation: 15
Check out gvim. It's vi, but MUCH better... it's probably already installed. It has icon button and menu pull-down capabilities.
 
  


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
getting a password to save tracie Linux - Software 1 12-30-2004 12:11 AM
How do I save to XF86Config? Joe Belmaati Linux - Newbie 4 11-12-2004 05:43 AM
Save a stream spotslayer Linux - Software 3 04-17-2004 06:01 PM
save my h/d alaios Linux - Hardware 3 12-13-2003 12:04 PM
Save her..... A-dummy General 5 08-15-2002 01:00 PM


All times are GMT -5. The time now is 12:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration