LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 04: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, 05:03 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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, 05: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, 08: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, 08:30 PM   #5
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
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, 09:19 PM   #6
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

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



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 12:53 PM
Editing text Files kool_kid Linux - Newbie 12 12-26-2004 11:21 PM
editing text files killertofu Linux - Newbie 2 10-15-2004 05:55 PM
Suggestions for text editing jackpotrobot Linux - Software 2 07-06-2004 04:08 PM
text editing machinemen Linux - Newbie 2 06-18-2004 04:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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