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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-07-2003, 02:41 PM
|
#1
|
Member
Registered: Sep 2003
Posts: 47
Rep:
|
file editor
what program should I use when editing files like XF386Config?
And how do I start it?
Thanks
|
|
|
09-07-2003, 02:43 PM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
09-07-2003, 02:57 PM
|
#3
|
Member
Registered: Sep 2003
Posts: 47
Original Poster
Rep:
|
Thanks, but how do you edit the file using pico?
|
|
|
09-07-2003, 02:57 PM
|
#4
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
............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
|
|
|
09-07-2003, 02:59 PM
|
#5
|
Member
Registered: Sep 2003
Posts: 47
Original Poster
Rep:
|
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 03:01 PM.
|
|
|
09-07-2003, 03:04 PM
|
#6
|
Senior Member
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286
Rep:
|
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
|
|
|
09-07-2003, 03:07 PM
|
#7
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
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
|
|
|
09-07-2003, 03:08 PM
|
#8
|
Member
Registered: Sep 2003
Posts: 47
Original Poster
Rep:
|
I am root..
pico, nano, and kedit wont work? Im typing for example "pico XF86Config" ..
Im running Red Hat 9 if that helps
|
|
|
09-07-2003, 03:09 PM
|
#9
|
Member
Registered: Sep 2003
Posts: 47
Original Poster
Rep:
|
gedit worked fint, thanks!!!
|
|
|
09-07-2003, 03:09 PM
|
#10
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
gedit should definately be in RH9 - try gedit
edit: posted identical minute - glad gedit works
Last edited by Skyline; 09-07-2003 at 03:11 PM.
|
|
|
09-08-2003, 09:50 AM
|
#11
|
Member
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Rep:
|
Maybe the Midnight Commander is installed, start it with mc. It includes an editor you can use without having to learn arcane commands.
Robin
|
|
|
All times are GMT -5. The time now is 02:38 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|