Find all symlinks and where they point to
I'm not having much luck running a command or commands that will find all the symlinks on a RHEL server and also tell me where they actually link to. Does anyone know how to do that?
|
To find all the symlinks
Code:
find / -type l Code:
find / -type l -exec ls -l {} \; Code:
find / -type l -exec ls -l {} \; 2> /dev/null But you don't want to find all of them (there's a ton of links for devices and such), you probably just want them in a specific directory, so replace `/` with the path you want to search (i.e. `/etc/` or `/home/user/`) |
for got tail end
Code:
sudo find / -type l -exec ls -l {} \; <-- Code:
lrwxrwxrwx 1 userx 1000 25 Jun 12 2012 /media/slack-mirror/slackware64-14.2/source/a/mkinitrd/busybox-dot-config -> busybox-dot-config.1.20.x |
Thanks, fixed
|
Awesome, many thanks!
|
All times are GMT -5. The time now is 01:35 PM. |