3 ms·
The most common use of the -f switch for me is when deleting directories that have git repos in them. If I do "rm -r project", it complains about every single o
by LeafStorm 15y ago
The most common use of the -f switch for me is when deleting directories that have git repos in them. If I do "rm -r project", it complains about every single object file in the Git database being not writable. I need to "rm -rf project" to get it to actually delete the directory without having to punch "yes" a thousand times, and "man rm" doesn't offer any safer alternatives.
- footle 15y agoYou could use "yes | rm -r project", I guess.
- deleted 15y ago[deleted]
- deleted 15y ago[deleted]
- muxxa 15y agoI understand that a local clone uses hardlinks (ln without the '-s' switch). Isn't a hardlink just a pointer to the underlying file? Removing a hardlink, even with the force switch won't delete the original version of the file in e.g. the local bare repository, or am I wrong?
- windsurfer 15y agoYes, you can safely delete hardlinks.