Web Hosting Talk







View Full Version : Are Symbolic links listed anywhere?


jireh
06-23-2004, 02:15 AM
Dear all,

I know a little about symbolic links, but not a lot and am hoping someone can help.

I know that you can list a symbolic link in a directory by typing ls -l. But is there a file somewhere on the server which logs the symbolic links in one place? Is there a text file you can manually edit somewhere on the server?

I am running a RedHat ES box.

Many thanks,

jireh

thaphantom
06-23-2004, 03:14 AM
no they are part of the file system... you can always do a ls -al of the dir where it resides and it will tell you waht it is.

jireh
06-23-2004, 03:27 AM
many thanks for that.

I will stop searching for it now. :mad:

Cheers,

jireh

Bashar
06-23-2004, 05:56 AM
find / -type l -ls

will find all symbolic link files and list them for you

you can save the text into output file for example
find / -type l -ls > /tmp/list_of_symbolic_files_on_my_machine :D
then more /tmp/list_of_symbolic_files_on_my_machine