uname

Overview

The uname command prints system information. It displays information about the system and kernel.

Syntax

uname [options]

Common Options

Option Description
-a All information
-s Kernel name
-n Network node name
-r Kernel release
-v Kernel version
-m Machine hardware
-p Processor type
-i Hardware platform
-o Operating system
-U Kernel build date

Output Fields

Field Description
System OS name
Node Network name
Release Kernel release
Version Kernel version
Machine Hardware name
Processor CPU type
Platform Hardware platform
OS Operating system

Key Use Cases

  1. System identification
  2. Version checking
  3. Platform detection
  4. Kernel information
  5. Hardware details

Examples with Explanations

Example 1: All Info

uname -a

Show all information

Example 2: Kernel Version

uname -r

Show kernel release

Example 3: Machine Type

uname -m

Show hardware name

Common Usage Patterns

  1. System check:

    uname -s
  2. Platform info:

    uname -mp
  3. OS details:

    uname -o

System Information

  1. Kernel details
  2. Hardware info
  3. Platform data
  4. Version numbers
  5. System name

Additional Resources

Best Practices

  1. Version checking
  2. Platform verification
  3. System identification
  4. Documentation
  5. Compatibility checks

System Analysis

  1. Kernel version
  2. Hardware type
  3. Platform details
  4. OS information
  5. System name

Troubleshooting

  1. Version mismatch
  2. Platform issues
  3. Kernel problems
  4. System identification
  5. Hardware detection

Common Uses

  1. Scripts
  2. System checks
  3. Documentation
  4. Compatibility
  5. Verification