LinuxQuestions.org
Review your favorite Linux distribution.
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 06-06-2004, 06:42 AM   #1
master
Member
 
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/Win7/8/10
Posts: 680

Rep: Reputation: 30
edit a .conf file


hello iv just installed" xine"no it told me i need to add the line
"/usr/local/lib" to my"/etc/ld.so.conf." but when i go in to my file called""/etc/ld.so.conf."
i can not write anything there is there a special way to do this im using redhat9
 
Old 06-06-2004, 06:55 AM   #2
kinasz
Member
 
Registered: Mar 2004
Location: Brisbane, Australia
Distribution: FreeBSD, Suse
Posts: 103

Rep: Reputation: 15
type as root:

cat >> /etc/ld.so.conf << EOF
/usr/local/lib
EOF
 
Old 10-13-2005, 01:29 PM   #3
master
Member
 
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/Win7/8/10
Posts: 680

Original Poster
Rep: Reputation: 30
Well aint this a late reply.
I now need to know how to remove a line from a file,if someone could give me an example of removing a line from the file above i would manage from there.
Thanks Nige
 
Old 10-13-2005, 02:03 PM   #4
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
The problem before was that as a normal user you don't have permission to edit system files, so in a console switch to root by
Code:
su -
and give root's password, then use your favourite console text editor to edit the file, for example
Code:
vim /etc/ld.so.conf
 
Old 10-13-2005, 02:11 PM   #5
master
Member
 
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/Win7/8/10
Posts: 680

Original Poster
Rep: Reputation: 30
right just to let you know what im doing i have used ssh in to another computer and want to delete a line from a file there.I can not use x i need to do it all from a console.
Thanks nige
 
Old 10-13-2005, 02:16 PM   #6
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Use your favourite console text editor like I said: vim (my fav), pico, nano, emacs, joe - whatever you want
 
Old 10-13-2005, 05:47 PM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
vi /path/to/file

Place block cursor on line you want to remove and type "dd" in command mode. Then type :wq! or Shift+ZZ to save and quit.

Last edited by trickykid; 10-13-2005 at 05:48 PM.
 
Old 10-13-2005, 05:49 PM   #8
master
Member
 
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/Win7/8/10
Posts: 680

Original Poster
Rep: Reputation: 30
cheers tricky thats just what i wanted
thanks
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to edit yum.conf file? sirius57 Fedora 10 06-23-2005 12:00 PM
I cannot edit grub.conf file!! Azzath Linux - Software 3 03-23-2005 02:00 PM
How to edit /etc/modules.conf file? Mateo1041 Linux - Newbie 4 11-19-2004 12:18 PM
How to edit grub.conf file? hnash53 Linux - Software 1 12-12-2003 12:33 AM
How do I edit /etc/modules.conf file? GrapeApe Linux - Newbie 10 11-13-2003 07:54 PM

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

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