Which Linux terminal command can be used to monitor real-time file updates, frequently used to watch system log additions dynamically? MCQ with Answer and Explanation

Which Linux terminal command can be used to monitor real-time file updates, frequently used to watch system log additions dynamically?
A. tail -f
B. less
C. head
D. cat
Answer: Option A
Solution (By JKSSB Mock Tests)
The 'tail' command with the '-f' (follow) option keeps the text stream open, printing new lines to the terminal screen as they are written to the log file.

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1
Which Linux command is used to display the system's current network connections and routing tables?
A. ip route
B. ss
C. netstat
D. All of the above

Correct Answer: Option D


Explanation:
netstat, ss, and ip route provide network connection and routing info; ss is modern replacement for netstat.

This question belongs to: Computer Operating Systems
Question #2
In Windows, the 'Nslookup' command is used for:
A. Testing network connectivity
B. Displaying network statistics
C. Querying DNS servers to resolve domain names
D. Tracing network routes

Correct Answer: Option C


Explanation:
nslookup is a tool for DNS resolution and troubleshooting DNS records.

This question belongs to: Computer Operating Systems
Question #3
In Linux, what does the command 'ls -l' display?
A. Hidden files as well
B. Only file names
C. Detailed file information including permissions, owner, size, and timestamp
D. Files sorted by size

Correct Answer: Option C


Explanation:
ls -l (long listing) displays permissions, number of links, owner, group, size, date, and filename.

This question belongs to: Computer Operating Systems