A user issues a Linux command and the result is shown: Which Linux command is used to display the contents of the current directory as shown?

IT Questions BankCategory: DevNetA user issues a Linux command and the result is shown: Which Linux command is used to display the contents of the current directory as shown?
A user issues a Linux command and the result is shown: Which Linux command is used to display the contents of the current directory as shown? 1ITExamAnswers Staff asked 5 months ago

Question:
A user issues a Linux command and the result is shown:

total 40 
drwxr-xr-x 2 devasc devasc 4096 Mar 30 21:25 Desktop 
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Documents 
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Downloads 
drwxr-xr-x 5 devasc devasc 4096 Mar 30 21:21 labs 
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Music 
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Pictures 
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Public 
drwxr-xr-x 5 devasc devasc 4096 Mar 30 21:24 snap 
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Templates 
drwxr-xr-x 2 devasc devasc 4096 Apr 15 19:09 Videos 
[email protected]:~$

Which Linux command is used to display the contents of the current directory as shown?

  • ls -a
  • ls -l
  • ls
  • ls -lr

Explanation: The Linux ls command with the -l option is used to display contents in the current directory with a long list’, which provides more information about each file or subdirectory, such as permissions, owner, size, and creation date.

More Questions: DevNet Associate (v1.0) – Module 1 Exam Answers


Related Articles