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.
|
 |
02-16-2005, 07:41 AM
|
#1
|
Member
Registered: Nov 2004
Location: The Netherlands
Posts: 34
Rep:
|
Open config
Hello,
I changed my video card driver in the config file but something went wrong, so now when I boot X won't start. So I have to change the config file again here comes my question; Witch command do i have to use to open it. And what command do I need to save it. Thanks..
Ermen
|
|
|
02-16-2005, 08:04 AM
|
#2
|
LQ Newbie
Registered: Apr 2004
Posts: 27
Rep:
|
Easy.
If you have GNU Emacs installed, try typing 'emacs' in the console and it will start.
Then, type C-x C-f (that is, Control-X then Control-F) and write the path to the config file (usually /etc/XF86Config). Emacs will open it. Then edit what you need to. When you're done, type C-x C-s and Emacs will save it. Then type C-x C-c to exit.
If you don't have Emacs installed, I'm sorry because I don't know how to use vi.
|
|
|
02-16-2005, 08:31 AM
|
#3
|
Member
Registered: Nov 2004
Location: The Netherlands
Posts: 34
Original Poster
Rep:
|
I Don't believe I have installed Emacs..
I'm even sure I didn't..
There is a very simple command for it but I forgot; such as edit in DOS only for Linux
|
|
|
02-16-2005, 08:35 AM
|
#4
|
Member
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821
Rep:
|
hai do this....
$vi filename
or
#vi filename
vi and vim both are same...
i hope this work
|
|
|
02-16-2005, 08:37 AM
|
#5
|
Member
Registered: Nov 2004
Location: The Netherlands
Posts: 34
Original Poster
Rep:
|
Does that also works for Fedora? or only Mandrake
|
|
|
02-16-2005, 08:44 AM
|
#6
|
Member
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821
Rep:
|
hai, i hope that will work in fedora core
but not sure...if that worked use the command to save it
1)after open the file press i to edit the lines.
2)after editing,press ESC and then give the colen(  i mean use shift semicolen.
3)type wq for save that file..
|
|
|
02-16-2005, 08:48 AM
|
#7
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
VI/VIM and Emacs should be installed on most distros by default, so hopefully the commands will work. If the editors are not there, you can always use alternatives like PICO/NANO.
|
|
|
02-16-2005, 08:52 AM
|
#8
|
Member
Registered: Nov 2004
Location: The Netherlands
Posts: 34
Original Poster
Rep:
|
Quote:
Originally posted by bruse
hai, i hope that will work in fedora core
but not sure...if that worked use the command to save it
1)after open the file press i to edit the lines.
2)after editing,press ESC and then give the colen( i mean use shift semicolen.
3)type wq for save that file..
|
Your a genius, It worked.. Thanks a lot
|
|
|
02-16-2005, 08:56 AM
|
#9
|
Member
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666
Rep:
|
Also, Nano/Pico are somewhat easier to use than vi(m). You have the commands shown in the lower part of the screen, keyboard shortcuts like Ctrl-X are represented by '^X'.
|
|
|
All times are GMT -5. The time now is 06:06 PM.
|
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
|
|