Logo
  • Ubuntu
  • CentOS
  • Debian
  • Fedora
  • RedHat

Uname Command in Linux - DesignLinux

May 30 2020
designlinux 0 Comments
uname command in linux

Uname command is used to display basic information about the operating system and hardware. In addition, you can use options with uname to print kernel details and system architecture.

uname Command#

uname is the short name for “UNIX name”. This command works on all Linux and Unix like operating systems. Mostly, it is used to know hostname, processor architecture, and the version of the kernel running on the system.

Following is the basic syntax of the uname command:

uname [OPTIONS]...

The options are as below:

  • -a, (--all) – It will show all the available information about system. -snrvmo will produce the same output.
  • -s, (--kernel-name) – Prints the kernel name.
  • -n, (--nodename) – Display hostname
  • -r, (--kernel-release) – Prints the kernel release.
  • -v, (--kernel-version) – Display the kernel version.
  • -i, (--hardware-platform) – To show the hardware platform.
  • -m, (--machine) – Shows the name of the machine’s hardware name.
  • -p, (--processor) – Prints the architecture of the processor.
  • -o, (--operating-system) – Print the name of the operating system. On Linux systems that is “GNU/Linux”

When you run uname command without any options it just prints the core operating system name.

uname

The output will be the name of the kernel is “Linux”:

Linux

Generally, the uname command is used with the -a option to print all the information:

uname -a
Linux tecnstuff 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 GNU/Linux

Here,

  • Linux – It’s Kernel name
  • tecnstuff – This is Hostname
  • 4.15.0-101-generic is Kernel release
  • 102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 – Kernel version
  • x86_64 – Machine hardware name
  • GNU/Linux – Operating system name

You can use the options with each other for a specific output. For instance, to determine the hostname and kernel name of your system, you would type:

uname -rn
tecnstuff 4.15.0-101-generic

The output will be in the same sequence as output show with -a option. So it doesn’t matter if you issue -rn or -nr it will show output same in sequence.

Conclusion#

In this tutorial we learned how to use uname command to get kernel, system, hardware and processor information, etc. Generally, it is used with -a option to display all available information.

I hope you enjoyed reading and please leave your suggestion in the below comment section.

If you have any questions or suggestion, please leave a comment below.

Related

Tags: terminal, uname

How to Install OpenCV on Debian 10 Linux

Prev Post

How to Enable WordPress Debugging Mode to Fix Errors

Next Post
Archives
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
Categories
  • AlmaLinux
  • Android
  • Ansible
  • Apache
  • Arch Linux
  • AWS
  • Backups
  • Bash Shell
  • Bodhi Linux
  • CentOS
  • CentOS Stream
  • Chef
  • Cloud Software
  • CMS
  • Commandline Tools
  • Control Panels
  • CouchDB
  • Data Recovery Tools
  • Databases
  • Debian
  • Deepin Linux
  • Desktops
  • Development Tools
  • Docker
  • Download Managers
  • Drupal
  • Editors
  • Elementary OS
  • Encryption Tools
  • Fedora
  • Firewalls
  • FreeBSD
  • FTP
  • GIMP
  • Git
  • Hadoop
  • HAProxy
  • Java
  • Jenkins
  • Joomla
  • Kali Linux
  • KDE
  • Kubernetes
  • KVM
  • Laravel
  • Let's Encrypt
  • LFCA
  • Linux Certifications
  • Linux Commands
  • Linux Desktop
  • Linux Distros
  • Linux IDE
  • Linux Mint
  • Linux Talks
  • Lubuntu
  • LXC
  • Mail Server
  • Manjaro
  • MariaDB
  • MongoDB
  • Monitoring Tools
  • MySQL
  • Network
  • Networking Commands
  • NFS
  • Nginx
  • Nodejs
  • NTP
  • Open Source
  • OpenSUSE
  • Oracle Linux
  • Package Managers
  • Pentoo
  • PHP
  • Podman
  • Postfix Mail Server
  • PostgreSQL
  • Python
  • Questions
  • RedHat
  • Redis Server
  • Rocky Linux
  • Security
  • Shell Scripting
  • SQLite
  • SSH
  • Storage
  • Suse
  • Terminals
  • Text Editors
  • Top Tools
  • Torrent Clients
  • Tutorial
  • Ubuntu
  • Udemy Courses
  • Uncategorized
  • VirtualBox
  • Virtualization
  • VMware
  • VPN
  • VSCode Editor
  • Web Browsers
  • Web Design
  • Web Hosting
  • Web Servers
  • Webmin
  • Windows
  • Windows Subsystem
  • WordPress
  • Zabbix
  • Zentyal
  • Zorin OS
Visits
  • 0
  • 485
  • 606,235

DesignLinux.com © All rights reserved

Go to mobile version