LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-22-2004, 05:56 PM   #1
PhuckFonix
Member
 
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
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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
PhuckFonix
Member
 
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
mikshaw
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
comprookie2000
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
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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:

Ctrl-x
Ctrl-s

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

Ctrl-x
Ctrl-c
 
  


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
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


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