Which command displays distribution and version details of the OS?

Prepare for the Google Data Center Technician Exam. Use our interactive quiz featuring flashcards and multiple choice questions with hints and explanations. Get exam-ready today!

Multiple Choice

Which command displays distribution and version details of the OS?

Explanation:
OS distribution and version details are provided by the /etc/os-release file on most Linux systems. Displaying this file with a command like cat reveals fields such as NAME, VERSION, and VERSION_ID, giving you the distribution and its version in a readable form. Other commands don’t focus on OS identity: uname -a shows kernel information, not the distribution name or version; df -h reports disk usage; journalctl -p err -b shows system logs from the current boot. So reading /etc/os-release is the direct way to see the OS distribution and version.

OS distribution and version details are provided by the /etc/os-release file on most Linux systems. Displaying this file with a command like cat reveals fields such as NAME, VERSION, and VERSION_ID, giving you the distribution and its version in a readable form. Other commands don’t focus on OS identity: uname -a shows kernel information, not the distribution name or version; df -h reports disk usage; journalctl -p err -b shows system logs from the current boot. So reading /etc/os-release is the direct way to see the OS distribution and version.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy