LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-27-2002, 05:18 AM   #1
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
Misc Questions....


1. Is there a way to cp a symlink (the actual symlink file itself, not the file being linked to) as a regular file? eg
if I had a symlink foo -> foobar, when copied as bar, would give a regular text file with the string 'foobar' in it?
Can the cp command do it in one hit or do I have to use a script?

2. How do I retain the screen colors when I pipe
the output of ls? (for Redhat distro)

3. Does anyone know of any document which summarises
the various /etc config files (ie which config files are
used by what utility)? (pls dont suggest looking at the
man pages, I don't wish to wade through every single
config file for every man page)

4. How do I manually determine the dependencies a
package (rpm) uses? How do I view this information?
 
Old 06-27-2002, 10:09 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
1. cp -d linksource linkdestination

2. Which program are you piping it through? I piped it through grep and it still had the colours. And something like this also keeps the colours:
ls --color | xargs

3. No I doubt there is. There are so many different applications which place their files there. And you can use greps and other searches to go through your manpages to find out where a certain config file belongs to. Or query the rpm database if it's been put there by an rpm.

4. rpm -qpR package.rpm
 
Old 06-27-2002, 01:00 PM   #3
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Mik
1. cp -d linksource linkdestination

2. Which program are you piping it through? I piped it through grep and it still had the colours. And something like this also keeps the colours:
ls --color | xargs

3. No I doubt there is. There are so many different applications which place their files there. And you can use greps and other searches to go through your manpages to find out where a certain config file belongs to. Or query the rpm database if it's been put there by an rpm.

4. rpm -qpR package.rpm
Thanks for the reply...

1. cp -d creates linkdestination as a link. I want it to be a regular txt file containing the link pathname. What I'm trying to do is "create" symlink files on a VFAT partition. A direct cp -d will not work since VFAT doesn't support symlinks. Is there a way to instruct cp to remove the 'symlink' when doing cp -d?

2. I'm piping it to more, less.
 
  


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
Misc. Questions About 10.2 Duo Secundus Slackware 1 09-29-2005 05:40 AM
Misc shell questions Cyth Linux - Software 1 03-13-2003 09:31 AM
Misc Questions OlRoy Linux - General 3 12-09-2002 06:03 PM
Misc. Linux questions. ugenn Linux - Newbie 7 04-16-2002 09:42 AM
More Misc Linux Questions... ugenn Linux - Newbie 4 04-16-2002 09:38 AM


All times are GMT -5. The time now is 10:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration