Find all symlinks in a Linux or Solaris filesystem⚓︎
Overview⚓︎
Using find we can search a directory structure for all symlinks, including searching only for those which are broken.
Process⚓︎
All Symlinks⚓︎
The below command will show all symlinks, including those in dot directories.
| Bash | |
|---|---|
1 | |
Broken Symlinks⚓︎
The below command will do similar to above, but only shows symlinks which point to files and directories which no londer exist. This helps in finding, and removing, broken symlinks.
| Bash | |
|---|---|
1 | |

