How do you find which version and name of unix you are
using at the command prompt?




Answers were Sorted based on User's Feedback



How do you find which version and name of unix you are using at the command prompt?..

Answer / anil kumar p

uname -a in HP-UX
-s Operting system name

-r release of the version name

Is This Answer Correct ?    24 Yes 0 No

How do you find which version and name of unix you are using at the command prompt?..

Answer / pankaj sain

#cat /etc/issue
#cat /proc/version
#uname -r
#cat /etc/*-release

Is This Answer Correct ?    5 Yes 1 No

How do you find which version and name of unix you are using at the command prompt?..

Answer / anup kumar

uname -for getting name of unix os
uname -r -for geetting version

Is This Answer Correct ?    4 Yes 0 No




How do you find which version and name of unix you are using at the command prompt?..

Answer / c sivakumar

We can get os release level alone by executing below said
command.
command = uname -r
Output = 5.9

But if you want complete details, you have to execute below
said command.

command = uname -a
Output = SunOS bigmummy2 5.9 Generic_117171-07 sun4u sparc
SUNW,Sun-Fire-480R.

Above said command output details are following below:-

operating system = SunOS
node name = bigmummy2
OS release level = 5.9
OS version = Generic_117171-07
Machine hardware name = sun4u
processor type = sparc
HardwareImplimentation = SUNW,Sun-Fire-480R

Is This Answer Correct ?    2 Yes 1 No

How do you find which version and name of unix you are using at the command prompt?..

Answer / prabakaran

The swlist command displays information about software
products installed at or available from the specified
target_selections. It supports these features:

*

Specify bundles, products, subproducts, and/or
filesets to list.
*

Display the files contained in each fileset.
*

Display a table of contents from a software source.
*

Specify the attributes to display for each software
object.
*

Display all attributes for bundles, products,
subproducts, filesets and/or files.
*

Display the full software_spec to be used with
software selections.
*

Display the readme file for products.
*

Display the depots on a specified host.
*

Create a list of products, subproducts, and/or
filesets to use as input to the other commands.
*

List the categories of available or applied patches.
*

List applied patches and their state (applied or
committed).

Previewing Product and OS Update Information

To preview information about new software in the depot, you
can use swlist to view the readme file for each product,
including OS update information contained in the SD (SW-DIST
product) readme. For example, to display the latest OS
update information:

swlist -d -a readme -l product SW-DIST @ hostA:/depot11
Options

When no options or operands are specified, swlist lists the
software bundles (and products which are not part of a
bundle) that are installed at the local host. swlist
supports the following options:

-d

List software available from a depot (instead of
software installed on a root filesystem).
-i

Invoke the swlist interactive user interface. The
interactive interface lets you browse SD software objects.
Invoking swlist -i -d lets you browse depot software.
-r

List products installed on an alternate root filesystem
(instead of software installed on /). Use of -r is optional.
-R

Shorthand for -l bundle -l product -l subproduct -l
fileset.
-v

If no -a options are specified, then list all the
attributes for an object, one attribute per line. The
attributes are listed in the format:

keyword value

If one or more -a options are specified, then list the
selected attributes in the above format.

Is This Answer Correct ?    1 Yes 0 No

How do you find which version and name of unix you are using at the command prompt?..

Answer / scorpio

for red hat versions

vi /etc/redhat-release

Is This Answer Correct ?    4 Yes 4 No

How do you find which version and name of unix you are using at the command prompt?..

Answer / satyanarayan

u can see "vi /etc/grub.conf" file

Is This Answer Correct ?    0 Yes 1 No

Post New Answer



More Unix Commands Interview Questions

what is exact definition of operating system?

13 Answers  


what is the cmd to display the last exit status in UNIX?

5 Answers   Syntel, MEIT,


Which mode is used for allowing file write,read and append mode?

9 Answers   BitWise, TM,


how to make IGNITE-BACKUP in HP-UX?

4 Answers   HP,


How to set sticky bit, or it have any seperate directory to create sticky bit in sunfir servers. Please help me , i don't no the exact answer?

4 Answers   HCL, Wipro,






How would you change all occurrences of a value using VI?

4 Answers  


how many types of file in unix?

34 Answers   MNC, TCS,


what does the command 'wc' do?

4 Answers  


what is Online(STM) and offline diagnostics in HP-UX?

2 Answers   HP,


what is virtual machine?

2 Answers   Infosys,


Write a command to find all of the files which have been accessed within the last 30 days.

14 Answers   Cisco,


how to check a file system type

7 Answers   Wipro,






Categories