LinuxQuestions.org
Review your favorite Linux distribution.
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 09-07-2003, 03:41 PM   #1
gurra59
Member
 
Registered: Sep 2003
Posts: 47

Rep: Reputation: 15
file editor


what program should I use when editing files like XF386Config?
And how do I start it?
Thanks
 
Old 09-07-2003, 03:43 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
For newbies, pico is easy to use and understand to edit files at a console.

I recommend learning and using vi, as it might save your life one day when nothing else is available.

Regards.
 
Old 09-07-2003, 03:57 PM   #3
gurra59
Member
 
Registered: Sep 2003
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks, but how do you edit the file using pico?
 
Old 09-07-2003, 03:57 PM   #4
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
............and to start an editor

Open a shell

type

su

then type you root password

then type for example

kedit /etc/X11/XF86Config

In general

editor path_to_file

to bring the actuall file up
 
Old 09-07-2003, 03:59 PM   #5
gurra59
Member
 
Registered: Sep 2003
Posts: 47

Original Poster
Rep: Reputation: 15
thanks

but.. the command 'pic 'filename'' wont let me edit the file, i think.. And kedit 'filename' wont work at all..
??

Last edited by gurra59; 09-07-2003 at 04:01 PM.
 
Old 09-07-2003, 04:04 PM   #6
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
it's pico, not pic

plus to edit xf..config, u need to be root.

if u dont have pico on ur machine, u might be having some called "nano". pretty much the same, those two
 
Old 09-07-2003, 04:07 PM   #7
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
kedit was just an example - it has to be installed with your distro to use it - which distro are you using?

try

gedit /etc/X11/XF86Config

ie find an editor thats on your machine and use that
 
Old 09-07-2003, 04:08 PM   #8
gurra59
Member
 
Registered: Sep 2003
Posts: 47

Original Poster
Rep: Reputation: 15
I am root..
pico, nano, and kedit wont work? Im typing for example "pico XF86Config" ..
Im running Red Hat 9 if that helps
 
Old 09-07-2003, 04:09 PM   #9
gurra59
Member
 
Registered: Sep 2003
Posts: 47

Original Poster
Rep: Reputation: 15
gedit worked fint, thanks!!!
 
Old 09-07-2003, 04:09 PM   #10
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Smile

gedit should definately be in RH9 - try gedit

edit: posted identical minute - glad gedit works

Last edited by Skyline; 09-07-2003 at 04:11 PM.
 
Old 09-08-2003, 10:50 AM   #11
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Rep: Reputation: 35
Maybe the Midnight Commander is installed, start it with mc. It includes an editor you can use without having to learn arcane commands.

Robin
 
  


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 open A file with an editor through my shell amer_58 Linux - Newbie 12 03-11-2005 07:19 AM
editor saves duplicate file with tilde after it smaudlin Red Hat 2 12-29-2004 05:37 PM
Found a video editor, now, I need a file converter or... oicdn Linux - Software 4 04-26-2004 12:10 PM
Getting rid of highlighting in a vi editor text file. Dee62 Linux - Newbie 6 03-11-2004 03:55 PM
Blizzard MPQ file format Editor or Viewer?!? Kme1e0n Linux - Software 0 10-08-2003 07:56 AM


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