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 |
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.
|
 |
06-06-2004, 06:42 AM
|
#1
|
Member
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/Win7/8/10
Posts: 680
Rep:
|
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
|
|
|
06-06-2004, 06:55 AM
|
#2
|
Member
Registered: Mar 2004
Location: Brisbane, Australia
Distribution: FreeBSD, Suse
Posts: 103
Rep:
|
type as root:
cat >> /etc/ld.so.conf << EOF
/usr/local/lib
EOF
|
|
|
10-13-2005, 01:29 PM
|
#3
|
Member
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/Win7/8/10
Posts: 680
Original Poster
Rep:
|
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
|
|
|
10-13-2005, 02:03 PM
|
#4
|
Senior Member
Registered: Oct 2004
Posts: 1,272
Rep: 
|
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 and give root's password, then use your favourite console text editor to edit the file, for example
Code:
vim /etc/ld.so.conf
|
|
|
10-13-2005, 02:11 PM
|
#5
|
Member
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/Win7/8/10
Posts: 680
Original Poster
Rep:
|
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
|
|
|
10-13-2005, 02:16 PM
|
#6
|
Senior Member
Registered: Oct 2004
Posts: 1,272
Rep: 
|
Use your favourite console text editor like I said: vim (my fav), pico, nano, emacs, joe - whatever you want
|
|
|
10-13-2005, 05:47 PM
|
#7
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
10-13-2005, 05:49 PM
|
#8
|
Member
Registered: Oct 2003
Location: Birmingham/Eng/UK
Distribution: /Debian3.1/suse/Win7/8/10
Posts: 680
Original Poster
Rep:
|
cheers tricky thats just what i wanted
thanks
|
|
|
All times are GMT -5. The time now is 06:18 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
|
|