• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

uname Command Examples in Linux

by Deepika

The uname command is a command-line utility that is commonly used in Unix and Linux systems to retrieve and display information about the current system. When the uname command is run, it prints various system-related information, including the system name, network node hostname, operating system release, operating system version, and the hardware identifier.

The uname command is useful for system administrators and power users who need to retrieve information about the system they are working on. For example, the uname command can be used to check the operating system version, which can be useful when installing software that has specific system requirements. It can also be used to check the hardware identifier, which can be helpful when working with hardware-specific software.

uname Command Examples

1. Print kernel name:

# uname

2. Print system architecture and processor information:

# uname --machine --processor

3. Print kernel name, kernel release and kernel version:

# uname --kernel-name --kernel-release --kernel-version

4. Print system hostname:

# uname --nodename

5. Print all available system information:

# uname --all

Summary

In summary, the uname command is a simple yet powerful command-line utility that is used to retrieve and display information about the system. By using various options with the uname command, users can retrieve specific system-related information, making it a useful tool for system administrators and power users.

Filed Under: Linux

Some more articles you might also be interested in …

  1. Linux OS Service ‘acpid’
  2. xargs: command not found
  3. Mac Terminal diskutil Command Examples
  4. “java” command does not run the JVM that has been installed
  5. arduino-builder: A command-line tool for compiling arduino sketches
  6. “az storage account” Command Examples (Manage storage accounts in Azure)
  7. pkill Command Examples in Linux
  8. awslogs Command Examples (Queries groups, streams and events from Amazon CloudWatch logs)
  9. fdupes: Finds duplicate files in a given set of directories
  10. namei Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • glab Command Examples
  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright