Review your favorite Linux distribution.
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 12-30-2004, 08:42 PM   #1
Registered: Dec 2004
Distribution: Slack 10
Posts: 59

Rep: Reputation: 15
Terminal editting

How do I edit a .conf file from the terminal? (what command do i use)
Old 12-30-2004, 08:44 PM   #2
Senior Member
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
the vi editor works nicely but may be a little learning to do.
vi somefile.conf
Old 12-30-2004, 08:46 PM   #3
Registered: Dec 2004
Distribution: Slack 10
Posts: 59

Original Poster
Rep: Reputation: 15
Ok thanks.
Old 12-30-2004, 08:49 PM   #4
Senior Member
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 216Reputation: 216Reputation: 216
That depends on the editer you wish to use.

For most config files, you need to be root, so su to root and try:

pico /etc/fstab

Pico is a fairly simple editor form the command line.

You couls also try this:


mc is Midnight Commander and this is a nice quick browser with editing capability.

Or, how about this:

jed /etc/fstab

Thats kinda cool.

vi and emacs too... no comment



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
Gnome Editting revolutionary_era Ubuntu 4 10-09-2005 07:17 AM
editting rhgb usa1234 Fedora 3 08-28-2004 11:27 AM
Editting Build Scripts Corallis Linux - Newbie 1 06-30-2004 07:26 PM
Audio Editting Software bkbroil Linux - Software 5 10-16-2003 08:56 AM
New to Linux....Need Help Editting werley_123 Linux - Newbie 11 07-13-2003 07:52 PM > Forums > Linux Forums > Linux - Newbie

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