Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-22-2004, 05:56 PM   #1
Registered: Mar 2004
Location: United States of Bush
Distribution: Knoppix 3.7, Debian Sarge
Posts: 297

Rep: Reputation: 30
Text editing

I'm running MDK 10.0 and I need to edit /etc/fstab and save it with a non-GUI text editor( in pre-KDE mode). Please assist. Thanks.
Old 05-22-2004, 06:03 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
I like using pico for text editing. Its use is simple and straightforward. You can try vi or emacs, but they're a lot more complicated to learn.
Old 05-22-2004, 06:06 PM   #3
Registered: Mar 2004
Location: United States of Bush
Distribution: Knoppix 3.7, Debian Sarge
Posts: 297

Original Poster
Rep: Reputation: 30
I've been trying vim and emacs, I don't know how to save. I'll try pico, hopefully it's on MDK already, otherwise, I'll have to download it pre-KDE style.
Old 05-22-2004, 09:22 PM   #4
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Type "vimtutor" in a console and you'll get a helpful introduction to the basics of Vim.

:w will save your current document, and :wq will save and quit.
Old 05-22-2004, 09:30 PM   #5
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
vimtutor is great.In 15-20min I could edit and had the confidence that I wouldn't mess up,just great.
Old 05-22-2004, 10:19 PM   #6
Senior Member
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
For emacs, edit the file (you should be able to move around with arrow keys, page up, page down, etc.), and then hit this key sequence:


Then, to exit emacs, this is the key sequence:



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
text editing from a script vogelbaugh Linux - General 2 09-22-2005 01:53 PM
Editing text Files kool_kid Linux - Newbie 12 12-27-2004 12:21 AM
editing text files killertofu Linux - Newbie 2 10-15-2004 06:55 PM
Suggestions for text editing jackpotrobot Linux - Software 2 07-06-2004 05:08 PM
text editing machinemen Linux - Newbie 2 06-18-2004 05:38 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:27 AM.

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