IT Questions and Answers :)

Thursday, November 23, 2017

If you’re looking to display all files in a given directory and all its sub-directories, including hidden files, which of the following Linux command would you use?

If you’re looking to display all files in a given directory and all its sub-directories, including hidden files, which of the following Linux command would you use?

  • ls -aR
  • ls -l
  • ls-a
  • ls -R 

 
If you’re looking to display all files in a given directory and all its sub-directories, including hidden files, which of the following Linux command would you use?

EXPLANATION

The Bash command "ls" lists all information about a given file. In this case, it’s modified by "-aR" to maintain groups of files as a single archive file, which displays everything in a given file. By itself, this command will show you everything on your hard disk (and we mean everything).

SOURCE

http://linuxcommand.org/lc3_man_pages/ls1.html
Share:

Popular Posts

Blog Archive