LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-20-2005, 01:25 PM   #1
brianbritz
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: Disabled
How to change to the config directory


I am trying to do something that deals with forensics on Red Hat. The information that I am using asks me to change to the config directory. What is the config directory and how do I use it?
 
Old 10-20-2005, 10:00 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
It would be helpful to know what information you are using. But, failing that knowledge, I'd suggest that the instructions are telling you to change to the /etc directory, where configs of all kinds are kept (except the user specific configs in the user's home directory as hidden files [files preceded by a dot in the name]).

From the command line, to change directory, use the command cd: as in 'cd /etc' to change from whereever you are in the directory tree to /etc directory. To edit the contents of any file in /etc, you must have superuser (root) authority.

If editing from the command line, using a text editor such as vim, do this.
Enter the command: su (to switch user). You will be prompted for the password of the user to switch to. Enter the root password.

As root, start vim to edit a particular file: vim <filename>.

If you are not familiar with vim, there's another technique which will allow you to use a GUI editor.

While still logged in as user, enter the command 'xhost +localhost' to grant another user to use the GUI environment of the user. Then su to root. Then start a GUI editor. Something like '/usr/bin/kwrite' or whereever kwrite is on your system. When the editor is up and running, edit the file of interest, save and quit. Enter the word 'exit' to exit root authority, and you're done.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change directory windefault Linux - Newbie 5 11-02-2004 04:28 AM
How to change directory? bngrhl Linux - Newbie 5 05-16-2004 01:20 AM
kde config directory genesis12 Linux - Newbie 1 03-26-2004 09:43 PM
mountig - change ro to rw, delete directory, change rw to ro ?? itsjustme Linux - General 6 10-17-2003 11:48 AM
evolution and config directory SuperCrevette Linux - Newbie 2 02-16-2003 08:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:19 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
Open Source Consulting | Domain Registration