Multiple choice technology operating systems

There are 10 dot files (i,e files starting with .).What will be the output of ls command executed by root?

  1. dot files will not be listed

  2. Last dot file only be listed

  3. only latest dot file be listed

  4. dot files will be listed

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

When root executes the ls command, all dot files (files starting with .) are listed because root has permissions to view all files. The behavior of listing dot files depends on the user's permissions, not the user identity. Since root can access any file, ls will display dot files in the directory.