Table 56-1 describes commands that enable you to display general system information.
Table 56-1 Commands for Displaying System Information
Command |
Enables You to Display a System's ... |
---|---|
showrev(1m) |
Hostname, host identification number, release, kernel architecture, application architecture, hardware provider, domain, and kernel version |
uname(1) |
Operating system name, release, and version; node name; hardware name; processor type |
Host ID number |
|
Installed memory |
|
Date and time |
To display specific system and software release information, use the showrev command.
$ showrev [-a] |
-a |
Displays all system release information available. |
The following example shows showrev command output.
$ showrev -a Hostname: pluto Hostid: 5721864d Release: 5.6 Kernel architecture: sun4cm Application architecture: sparc Hardware provider: Sun_Microsystems Domain: solar.com Kernel version: SunOS 5.6 Generic August 1997 OpenWindows version: OpenWindows Version 3.6 January 1997 No patches are installed $ |
To display system information, use the uname command.
$ uname[-a] |
-a |
Displays the operating system name as well as the system node name, operating system release, operating system version, hardware name, and processor type. |
The following example shows uname command output.
$ uname SunOS $ uname -a SunOS pluto 5.6 Generic sun4m sparc SUNW,SPARCstation-5 $ |
To display the host identification number in hexadecimal format, use the hostid command.
$ hostid |
The following example shows sample output from the hostid command.
$ hostid 7725ac42 |
To display the amount of memory installed on your system, use the prtconf command.
$ prtconf [| grep Memory] |
grep Memory |
Focuses output from this command to display memory information only. |
The following example shows sample output from the prtconf command.
# prtconf | grep Memory Memory size: 56 Megabytes |
To display the current date and time according to your system clock, use the date command.
$ date |
The following example shows sample output from the date command.
$ date Thu Mar 6 09:06:52 MST 1997 $ |