Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 390  / 2 Years ago, sat, june 11, 2022, 11:25:26

Are the commands' options case sensitive? i.e.



I did



rm -r directory


And



rm -R directory


And I got the same results, whereas when I did



ls -r directory


and



ls -R directory


I got different answers.


More From » 12.10

 Answers
4

This is what man pages are for



ls:



http://manpages.ubuntu.com/manpages/raring/man1/ls.1.html




-r, --reverse
reverse order while sorting



-R, --recursive
list subdirectories recursively




rm:



http://manpages.ubuntu.com/manpages/raring/man1/rm.1.html




-r, -R, --recursive
remove directories and their contents recursively




So with the command rm, -r and -R are the same, but not so with ls


[#30828] Saturday, June 11, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
llianconclad

Total Points: 65
Total Questions: 109
Total Answers: 127

Location: Mali
Member since Fri, Dec 3, 2021
2 Years ago
;