Help answer threads with 0 replies.
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 04-15-2003, 05:16 PM   #1
Registered: Apr 2003
Location: UK
Posts: 52

Rep: Reputation: 15
how do i edit a file


i need to edit my XF86Config file (see last my last post for why!) i am in the console that i got to by control/alt/F1 and logged in as root, i found the xfconfig file in the etc/x11/ directory. But how do i edit it??????? i am using Redhat 9, and i dont seem to be able to find a text editor (i found piconv????? is that one - but i cant work that out either!) PLEASE HELP ME!


Old 04-15-2003, 05:19 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982

try those, probably in that order pico / nano are very very obvious and logical, vi and emacs are not (but more likely to be one your system)
Old 04-15-2003, 05:30 PM   #3
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533

Rep: Reputation: 30
red hat 9 does not come with pico - which really sucks cause pico is the best text editor IMHO.

you can use Vi (I hate Vi though), but it is included on rh 9
Old 04-15-2003, 07:53 PM   #4
LQ Guru
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 8
Posts: 7,891

Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339
Try mp (minimum profit)

The editor that I prefer to use at the bash prompt is mp
Old 04-15-2003, 08:23 PM   #5
LQ Guru
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
if you have midnight commander installed it has a editor open it find the file press f4 it will open its text editor.
Old 04-16-2003, 10:48 AM   #6
Registered: Nov 2002
Location: ARIZONA
Distribution: Ubuntu
Posts: 44

Rep: Reputation: 15
Use vi.

At a terminal prompt, type vi "filename"

Once in vi, press the "insert" button, edit your text, when you are finished, you can save and exit or just exit without saving. To save type: ":" then "wq". If you want to exit without saving, type ":" and then "q!"

Hope this helps
Old 04-16-2003, 11:09 AM   #7
Registered: Apr 2003
Location: UK
Posts: 52

Original Poster
Rep: Reputation: 15
excellent! thanks, it all works now, i can see my screen again!



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
How to edit a file jimbrechin Linux - Newbie 6 03-26-2005 12:25 AM
Trying to edit a file AndreL Linux - Newbie 2 03-24-2004 05:45 AM
edit a file - how? michaeltweak Linux - Software 6 02-01-2004 10:25 AM
edit a file mjewell Linux - Newbie 3 01-19-2004 04:53 PM
how do I edit a file? JunLitsu Linux - General 7 04-10-2002 12:21 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:25 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