Free LPI 010-160 Actual Exam Questions - Question 10 Discussion
name without any values or parameters.)
-R is the only option that actually digs into subdirectories; lowercase -r is just for reversing the sort order. So it’s gotta be -R for recursive listing.
-R is the common flag for recursion in ls. Other options like -r just reverse order, so it doesn’t fit. The uppercase R is what triggers listing subdirectories recursively.
I’d say it’s definitely -R because that’s the standard for recursive in ls. Other options don’t do recursive listing, so it’s the only logical choice here.
Since they asked for the parameter name, -R fits best for recursive listing.
- The question says "parameter," so I think they want the short option R.
Actually, -r is for reverse order, not recursion. The recursive option is -R, which makes ls list directories and their contents recursively. So the right parameter is -R.
Option C is definitely out since it deals with sorting, not recursion. The answer should be the option that lets ls list subdirectories too.