Multiple choice technology

Count the files you own in all your directories

  1. ls -lR | grep myusername | wc -l

  2. ls -a | cnt *

  3. ls -n ~myusername

  4. ls -lrt

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

ls -lR recursively lists all files with ownership details, grep filters for lines containing your username, and wc -l counts the matching lines. This correctly counts files you own across all directories. Option B uses non-standard 'cnt' command, Option C shows numeric IDs without counting, and Option D is just a sorted listing.