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?

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 
devasc@labvm:~$

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.

Exam with this question: DevNet Associate (v1.0) – Module 1 Exam Answers
Exam with this question: 1.2.3 Quiz - Linux Review

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments