Uname Command

Uname Command

The command ‘uname‘ displays the information about the system

This command is used to display the information such as

kernel name,hostname , kernel release date , kernel version , operating system , hardware platform ( bit of CPU , it is based on CPU instruction set ) , machine hardware ( this is the number of bit or architecture of motherboard or data bus support )

1. -a option: It prints all the system information in the following order: Kernel namenetwork node hostnamekernel release datekernel versionmachine hardware namehardware platformoperating system

eg : uname -a

2. -s option: It prints the kernel name.

eg : uname -s

3. -n option: It prints the hostname of the network node(current computer).

eg : uname -n

4. -r option: It prints the kernel release date.

eg : uname -r

5. -v option: It prints the version of the current kernel.

eg : uname -v

6. -m option: It prints the machine hardware name.

eg uname -m

7. -p option: It prints the type of the processor.

eg uname -p

8. -i option: It prints the platform of the hardware.

eg uname -i

9. -o option: It prints the name of the operating system.

eg : uname -o


If you want to get the information of the operating system . then cat the following file

cat /etc/os-release

output:

  • NAME="Ubuntu"
  • VERSION="18.04.3 LTS (Bionic Beaver)"
  • ID=ubuntu
  • ID_LIKE=debian
  • PRETTY_NAME="Ubuntu 18.04.3 LTS"
  • VERSION_ID="18.04"
  • HOME_URL="https://www.ubuntu.com/"
  • SUPPORT_URL="https://help.ubuntu.com/"
  • BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
  • PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
  • VERSION_CODENAME=bionic
  • UBUNTU_CODENAME=bionic

























要查看或添加评论,请登录

Ritesh Sanjay Mahajan的更多文章

  • Velero - Backup Kubernetes Cluster

    Velero - Backup Kubernetes Cluster

    This is a overview article of Velero and things that can be done in Velero Velero allows you to take back up and…

    3 条评论
  • Bash Scripting Quick Guide-Part 1

    Bash Scripting Quick Guide-Part 1

    If you are learning Bash scripting by reading other people’s code you might have noticed that the first line in the…

    1 条评论
  • PWD

    PWD

    'pwd‘ stands for ‘Print Working Directory‘. As the name states, command ‘pwd‘ prints the current working directory or…

  • APT Package Manager

    APT Package Manager

    APT is a command-line based tool that is used for dealing with packages on a Ubuntu based Linux systems. It presents a…

  • RPM Package Manager

    RPM Package Manager

    RPM (Red Hat Package Manager) is an default open source and most popular package management utility for Red Hat based…

  • YUM Package Manager

    YUM Package Manager

    YUM (Yellowdog Updater Modified) is an open source command-line as well as graphical based package management tool for…

  • Package Management

    Package Management

    Package Management is method for installing,removing,update software on a Linux system . it is similar to exe file on…

  • UNIX and Linux History

    UNIX and Linux History

    UNIX was built by Dennis Ritchie(Also invented C language ) and Ken Thompson(also invented UTF-8 encoding and Go…

    3 条评论

社区洞察

其他会员也浏览了