New answers tagged symlink
3
votes
Accepted
How to make $ORIGIN in RPATH not follow symlinks?
[I know this is old, but it keeps getting bumped, so someone's still interested]
There's some pertinent information missing from the question: OS and libc. It seems to me to be Linux and glibc, since ...
1
vote
Why can't I use `rm -r` on a symlink pointing to a directory?
It's opinion based, but I think the most obvious reason why is safety and consistency.
The intended purpose of rm -r is to delete a directory. That named directory. But if you had a directory tree ...
3
votes
Why can't I use `rm -r` on a symlink pointing to a directory?
so if I want to remove a symlink I need to rm symlink without the trailing /
correct, because with a trailing slash like in your rm -r symlink/ example that is telling rm explicitly that the name ...
5
votes
Why can't I use `rm -r` on a symlink pointing to a directory?
It wouldn't be consistent, plain as that, and you even spell that out:
rm symlink_to_file deletes the symlink to the file, not the file itself
rm -r directory_containing_symlinks_to_files deletes the ...
Top 50 recent answers are included
Related Tags
symlink × 1189linux × 146
bash × 98
files × 84
filesystems × 82
ln × 78
directory × 74
shell × 73
hard-link × 70
permissions × 64
find × 54
rsync × 48
shell-script × 45
ls × 39
mount × 36
cd-command × 34
cp × 31
ubuntu × 30
command-line × 30
debian × 29
filenames × 27
path × 25
zsh × 22
macos × 22
rm × 22