Which option would you choose to display the kernel revision level for your operating system?
A.
cat. /etc/release
B.
uname -a
C.
pkg info kernel
D.
banner (issued from the OpenBoot Prom)
E.
cat /etc/motd
Explanation:
Different UNIX-like operating systems store information about their release versions
differently. If you know what OS you have, but not sure about the version, then here’s how you can
find out:
bash-2.03$ cat /etc/release
Solaris 8 2/04 s28s_hw4wos_05a SPARC
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
Assembled 08 January 2004
Reference: How To: Find Out the Release Version of Your UNIX
C not A
root@x2100m2 # pkg info kernel
Name: system/kernel
Summary: Core Kernel
Description: Core operating system kernel, device drivers and other modules.
Category: System/Core
State: Installed
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.175.1.11.0.3.2
Packaging Date: August 23, 2013 08:31:42 PM
Size: 35.89 MB
FMRI: pkg://solaris/system/[email protected],5.11-0.175.1.11.0.3.2:20130823T203142Z
root@x2100m2 # cat /etc/release
Oracle Solaris 11.1 X86
Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved.
Assembled 19 September 2012
Never kernel will not be displayed in a /etc/release
its c
c is correct answer
uname is also show the rev.
root@solaris:~# uname -a
SunOS solaris 5.11 11.1 i86pc i386 i86pc
root@solaris:~# pkg info kernel
Name: system/kernel
Summary: Core Kernel
Description: Core operating system kernel, device drivers and other modules.
Category: System/Core
State: Installed
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.175.1.0.0.24.2
Packaging Date: September 19, 2012 06:50:11 PM
Size: 32.59 MB
FMRI: pkg://solaris/system/[email protected],5.11-0.175.1.0.0.24.2:20120919T185011Z
root@solaris:~#
C
C
C is the correct one………….
# pkg info kernel
Name: system/kernel
Summary: Core Kernel
Description: Core operating system kernel, device drivers and other modules.
Category: System/Core
State: Installed
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.175.0.2.0.2.1
Packaging Date: Wed Oct 19 07:57:11 2011
Size: 17.99 MB
FMRI: pkg://solaris/system/[email protected],5.11-0.175.0.2.0.2.1:
20111128T20503