Answers for "linux rm symlink"

1

bash delete all symlinks

# Basic syntax:
find /path/to/directory/* -type l -delete
# Where:
#	- /path/to/directory/* can be any glob pattern that will match the files
#		(including symlinks) that you want to delete
#	- -type l specifies symlinks
#	- -delete deletes the symlinks that are found
# Note, add -mindepth # and -maxdepth # to specify how many levels to search
#	relative to the specified directory (e.g. -maxdepth 0 searches just the
#	specified directory)
Posted by: Guest on February-15-2022
1

remove a link linux

unlink symlink_name
Posted by: Guest on January-14-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language