The correct command to display the operating system is C. uname -o.
The uname command is used to print system information. It has several options that can be used to print different types of information.
Here's what each option does in the context of the given question:
A. uname -n: prints the hostname of the machine.
B. uname -s: prints the kernel name of the machine.
C. uname -o: prints the operating system of the machine.
D. uname -m: prints the machine hardware name.
Therefore, the correct option to display the operating system is C (uname -o).
uname man page
-a, --all
print all information, in the following order, except omit -p and -i if unknown:
-s, --kernel-name
print the kernel name
-n, --nodename
print the network node hostname
-r, --kernel-release
print the kernel release
-v, --kernel-version
print the kernel version
-m, --machine
print the machine hardware name
-p, --processor
print the processor type or "unknown"
-i, --hardware-platform
print the hardware platform or "unknown"
-o, --operating-system
print the operating system
--help
display this help and exit
--version
output version information and exit
The option -o for the uname command does not display the operating system. Instead, it is used to display the operating system name, which is not the same as the operating system itself. The -s option is used to display the operating system name, which typically includes the name, version, and architecture.
For example, if you run the command uname -s on a Linux system, it will return the following output:
Linux
So, in this case, the correct option for displaying the operating system would be -s, not -o.
This section is not available anymore. Please use the main Exam Page.XK0-005 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
linux_admin
Highly Voted 1 year, 2 months agoBryanSME
Most Recent 5 months, 1 week agoexamtopics11
11 months, 2 weeks agoLwarder1
1 year, 2 months agolinux_admin
1 year, 2 months agobjornborg
1 year, 5 months agoAamm033
1 year, 6 months ago