HP-UX System Administrator's Guide: Routine Management Tasks
• To extract a directory (and any of its sub-directories)
tar x /users/me/mystuff
• To restore all the files on the tape (write them back to disk):
tar x
NOTE: tar recreates the directories on the tape if they aren’t already on the
system.
How To:
Determining What Version of the HP-UX Operating System is Running
To determine what version of operating system you are running and on which platform,
use the uname command with the -a option:
uname -a
HP-UX tavi B.11.31 A 9000/800 1920004321 two-user license
In the example above, the system returned the following information:
HP-UX
Operating system name
tavi
System name
B.11.31
Operating system release identifier
A
Operating system version identifier
9000/800
Machine and model numbers
1290005321
Machine identification number
two-user license
Operating system license level
For more information about uname, see uname(1).
NOTE: The system release identifier B.11.31 corresponds with HP-UX 11i Version 3.
Checking the System’s Run Level
To find out what run level the system is in (for example if you want to check that you
are in single-user mode) enter:
who -r
The run level is the number in the third field from the right.
For example, this output
run-level 4 Apr 23 16:37 4 0 S
means that the system is in run-level 4.
How To: 143