Digital Marketing

Remove Symbolic Links with rm

To get prompted before removing the symlink, use the -i option:

rm -i symlink_name

If the symbolic link points to a directory, do not append the / trailing slash at the end. Otherwise, you will get an error:

rm symlink_to_dir/
rm: cannot remove 'symlink_to_dir/': Is a directory

To be on the safe side, never -r option when removing symbolic links with rm. 

Comments

Popular posts from this blog

Make online money from the Internet