Which Linux terminal command outputs the total number of lines, words, and characters contained inside a specified text file? MCQ with Answer and Explanation

Which Linux terminal command outputs the total number of lines, words, and characters contained inside a specified text file?
A. wc
B. count
C. ls -s
D. grep
Answer: Option A
Solution (By JKSSB Mock Tests)
The 'wc' (word count) command calculates and prints line counts, word totals, and byte metrics for a targeted text file.

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1
Which of the following is a feature of the Windows 'Group Policy'?
A. Centralized management of user and computer settings in a domain
B. Security policy configuration
C. Local policy settings for standalone machines
D. All of the above

Correct Answer: Option D


Explanation:
Group Policy allows administrators to define policies for users and computers, both locally and via Active Directory.

This question belongs to: Computer Operating Systems
Question #2
What is the purpose of the Android 'Notification System'?
A. To control volume settings
B. To manage system notifications
C. To display alerts and messages from apps on the status bar or lock screen
D. To handle application permissions

Correct Answer: Option C


Explanation:
The notification system allows apps to notify users about events, messages, and updates in a non-intrusive manner.

This question belongs to: Computer Operating Systems
Question #3
What is the function of the Linux 'mount' command?
A. To create a new file system
B. To format a disk
C. To check file system integrity
D. To attach a file system to a directory (mount point)

Correct Answer: Option D


Explanation:
mount makes a file system accessible at a specified directory, allowing the OS to read and write data on that device.

This question belongs to: Computer Operating Systems