Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

Rep: Reputation: 0
where to save in VI


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, 07:57 PM   #2
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, 09:10 PM   #3
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, 01:17 AM   #4
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.


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

All times are GMT -5. The time now is 09:57 PM.

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