/ factorpad.com / tech / linux-essentials / uname-command.html
An ad-free and cookie-free website.
Beginner
Learn to display system information at the Linux command line.
Videos can also be accessed from the Linux Essentials Playlist on YouTube.
Linux uname Command Summary with Examples (3:28)
Our sixty-second word, or command to memorize is
uname
from our category
System.
uname
allows you to display system
information.
-options | description |
---|---|
--help |
Display help screen |
-m ,
--machine |
Display machine hardware name |
-o ,
--operating-system |
Display operating system name |
Recall from videos 46 and 53, we explored environment variables, hard disk space and RAM memory, and here we'll access other system information.
Before we start, it helps to think of commands as mini programs and
most follow this structure:
command -option(s) argument(s)
.
The uname
command has
11 options and no arguments.
Like most commands, help is available with double-dash
--help
. The
-m
option displays hardware, and
-o
the operating system, but we'll
look at others in our terminal session.
So why is uname
an important command?
Well, you may need to access version numbers for compatibilities and
system updates.
And now you know how to do that.
Okay, the best way to embed this in your memory is by typing in your own terminal window.
Find this on your Mac using a program called Terminal. On Linux use Terminal or Konsole, and currently Microsoft is adding this functionality to Windows.
Here we go. So optionless uname
defaults to -s
for kernel name.
Next, I'll show you the
--help
.
The choices available you can see here (above) and then
-a
shows all.
Then, let's focus on the kernel and release, with
-sr
.
And last, the machine and operating system
-mo
.
Where machine refers to the CPU instruction set x86_64 which runs something like 90% of computers these days, and the operating system here is named GNU/Linux.
I never know, is it gu-new, new or GNU?
Anyway. ;)
Okay now you know how to use uname
.
And you know the syntax for commands, options and arguments.
One last tip about the uname
command. So I'm not sure what types of cocktail parties you attend, and
if this would make for an interesting topic, but Wikipedia has an
interesting page on whether the name of the operating system should be
GNU/Linux or simply Linux. If interested, there's a
link
in the Description (YouTube).
Okay, thanks for visiting today. I hope this was a helpful
introduction to the uname
command.
For an overview of the 100 videos, the 8 quizzes, a cheat sheet, the categories and a Q&A section, visit:
Look, no ads! There's something different going on here, subscribe and follow to be a part of it at the ground floor.
chsh
command,
hit Back.jobs
command, click Next./ factorpad.com / tech / linux-essentials / uname-command.html
A newly-updated free resource. Connect and refer a friend today.