4 ms·
You know what's also fun. Try deleting all files that start with a . in your current directory: rm -rf .* Would you expect this to go UPWARD? I would have
by susi22 12y ago
You know what's also fun. Try deleting all files that start with a . in your current directory:
rm -rf .*
Would you expect this to go UPWARD? I would have never. I.e. even if you're in /x/y/z it will traverse up the tree and start deleting /x and eventually /.
- vacri 12y ago'..' starts with '.', but I wouldn't have expected it to go more than one level up. I guess it saw ../.., then ../../.. ... These days, any time I do an rm with a wildcard, I always prepend with a directory, no matter how trivial, just to keep in the habit. 'rm ../mydir/.*'