exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 23 discussion

Actual exam question from CompTIA's XK0-005
Question #: 23
Topic #: 1
[All XK0-005 Questions]

Which of the following commands will display the operating system?

  • A. uname -n
  • B. uname -s
  • C. uname -o
  • D. uname -m
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
Highly Voted 1 year, 2 months ago
Selected Answer: C
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).
upvoted 5 times
...
BryanSME
Most Recent 5 months, 1 week ago
[bryan@almalinux etc]$ uname -n almalinux [bryan@almalinux etc]$ uname -o GNU/Linux [bryan@almalinux etc]$ uname -s Linux [bryan@almalinux etc]$ uname -m x86_64
upvoted 1 times
...
examtopics11
11 months, 2 weeks ago
Selected Answer: C
C. uname -o (OS) -s (kernel) is Linux -o (OS) is x86_64 https://www.youtube.com/watch?v=1AoKTorlEDc (2:28)
upvoted 1 times
...
Lwarder1
1 year, 2 months ago
Selected Answer: C
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
upvoted 4 times
...
linux_admin
1 year, 2 months ago
Selected Answer: B
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.
upvoted 1 times
...
bjornborg
1 year, 5 months ago
Selected Answer: C
# uname -o GNU/Linux
upvoted 1 times
...
Aamm033
1 year, 6 months ago
Selected Answer: C
C is correct
upvoted 1 times
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago