Logo 
Search:

Unix / Linux / Ubuntu Articles

Submit Article
Home » Articles » Unix / Linux / Ubuntu » CommandsRSS Feeds

Display information about computer system - uname

Posted By: Millie Brown     Category: Unix / Linux / Ubuntu     Views: 3276

This article explains about uname command with an example in unix.

uname command is used to display information about computer system in unix.

Syntax of uname Command

uname [-a] [-i] [-m] [-n] [-p] [-r] [-s] [-v] [-X] [-S systemname]  


Most Commonly used options are:
  • -a Print basic information currently available from the system.
  • -i Print the name of the hardware implementation (platform).
  • -m Print the machine hardware name (class). Use of this option is discouraged; use uname -p instead.
  • -n Print the nodename (the nodename is the name by which the system is known to a communications network).
  • -p Print the current host's ISA or processor type.
  • -r Print the operating system release level.
  • -s Print the name of the operating system. This is the default.
  • -v Print the operating system version.
  • -X Print expanded system information, one information element per line, as expected by SCO Unix. 
  • -S systemname The nodename may be changed by specifying a system name argument. The system name argument is restricted to SYS_NMLN characters. SYS_NMLN is an implementation specific value defined in <sys/utsname.h>. Only the super-user is allowed this capability.

Example of uname Command

uname - a
  
Share: 


Didn't find what you were looking for? Find more on Display information about computer system - uname Or get search suggestion and latest updates.

Millie Brown
Millie Brown author of Display information about computer system - uname is from London, United Kingdom.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!