Skip to content

Instantly share code, notes, and snippets.

@jimdiroffii
Created April 17, 2025 17:29
Show Gist options
  • Save jimdiroffii/3b8dc72df14f53cfe11a61004f0d0953 to your computer and use it in GitHub Desktop.
Save jimdiroffii/3b8dc72df14f53cfe11a61004f0d0953 to your computer and use it in GitHub Desktop.
Find all symlinks and change their link path
@jimdiroffii
Copy link
Author

Run find first to just list the links that might need to be updated:

find /search/path/dir -type l -exec ls -la {} \; | grep "/old/link/path"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment