Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-01-2004, 05:57 PM   #1
LQ Newbie
Registered: Apr 2004
Location: Michigan
Distribution: Debian
Posts: 24

Rep: Reputation: 15
Question Command?

What is the command to edit and save XF86Config files in the command line interface? I need this to solve a kernel conflict.

Old 04-01-2004, 06:05 PM   #2
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Depends what editor you want a popular one is vim so to edit a file you'd type

vim /etc/X11/XF86Config-4

Then edit the file. vi commands are not what your probably expeciting, so type


Then press F1 to go through the help file.
Old 04-01-2004, 06:05 PM   #3
Registered: Mar 2004
Location: Upstate NY
Distribution: Slackware/YDL
Posts: 77

Rep: Reputation: 15
probably the most straight forward way if you have emacs installed is to

emacs XF86Config

make changes

Ctrl x-c to exit and save file
Old 04-01-2004, 06:11 PM   #4
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 252Reputation: 252Reputation: 252
pico, vi, vim, nano, jed, emacs, jove, joe.... and many others. One of those is bound to be installed.. and usually vi is always installed. Good to learn when there is nothing else available to edit files with.
Old 04-01-2004, 06:18 PM   #5
Senior Member
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,690
Blog Entries: 9

Rep: Reputation: 45
use the command mentioned above for vi (vi /etc/XF86Config.........) and when you want to change something, use the keyboard arrows to move around the text.

Hit insert to be able make the changes you want.

Then hit esc so you are out of the editing mode.

then to save and quit type :wq (don't forget you have to type the colon), or if you don't make anychanges then just :q to quit (you can also try ctrl z which just "stop's" thing's)




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
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 08:19 PM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 03:23 AM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 08:14 PM
Command to display whole filestructure hierarchy f/ command line? mjewell Linux - Newbie 10 01-19-2004 11:48 AM
Where is Command line utility for Cups and command tutorial mossy Linux - Software 8 01-16-2004 01:24 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration