In Linux, what does the command 'ls -l' display? MCQ with Answer and Explanation

In Linux, what does the command 'ls -l' display?
A. Only file names
B. Detailed file information including permissions, owner, size, and timestamp
C. Hidden files as well
D. Files sorted by size
Answer: Option B
Solution (By JKSSB Mock Tests)
ls -l (long listing) displays permissions, number of links, owner, group, size, date, and filename.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Operating Systems Questions

Question #1
In Linux, the command 'rm -rf' is used to:
A. Forcefully remove directories and their contents recursively
B. Rename a file
C. Read a file forcefully
D. Remove empty directories only

Correct Answer: Option A


Explanation:
rm -rf (remove recursively and forcefully) deletes directories and files without confirmation, so it's dangerous.

This question belongs to: Computer Operating Systems
Question #2
Which area of the Linux file system hierarchy contains specialized pseudo-files that represent physical or virtual devices attached to the computer?
A. /proc
B. /bin
C. /sys
D. /dev

Correct Answer: Option D


Explanation:
The '/dev' directory contains device nodes or pseudo-files that map directly to hardware peripherals and components like storage volumes or serial ports.

This question belongs to: Computer Operating Systems
Question #3
Which Android component is responsible for managing the user interface and interactions?
A. Service
B. Activity
C. Broadcast Receiver
D. Content Provider

Correct Answer: Option B


Explanation:
Activities represent screens with UI; they handle user interactions and lifecycle events.

This question belongs to: Computer Operating Systems