LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-15-2003, 06:16 PM   #1
andym
Member
 
Registered: Apr 2003
Location: UK
Posts: 52

Rep: Reputation: 15
how do i edit a file


hello,

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!

thanks

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

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
pico
nano
vi
emacs

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, 06:30 PM   #3
yowwww
Member
 
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, 08:53 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

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

The editor that I prefer to use at the bash prompt is mp

http://www.triptico.com/software/mp.html
 
Old 04-15-2003, 09:23 PM   #5
nakkaya
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, 11:48 AM   #6
embsupafly
Member
 
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, 12:09 PM   #7
andym
Member
 
Registered: Apr 2003
Location: UK
Posts: 52

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

andy
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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