Warning: Some posts on this platform may contain adult material intended for mature audiences only. Viewer discretion is advised. By clicking ‘Continue’, you confirm that you are 18 years or older and consent to viewing explicit content.
ls -r actually lists entries in reverse order! It needs -R as well.
cp and rm accept either.
Looking at some man pages the only commands I found where -R didn’t work were scp and gzip where it doesn’t do anything, and rsync where it’s “use relative path names”.
(Caveat: BSD utils might be different, who knows what those devils get up to!)
People probably confuse it with tools like
cp
,rm
,ls
, etc as they use-r
for file recursion.ls -r
actually lists entries in reverse order! It needs-R
as well.cp
andrm
accept either.Looking at some man pages the only commands I found where
-R
didn’t work werescp
andgzip
where it doesn’t do anything, andrsync
where it’s “use relative path names”.(Caveat: BSD utils might be different, who knows what those devils get up to!)