Hp Ux Cheat Sheet

  • HP-UX Commands Cheat Sheet: How to use LVM on HP-UX: Configuration. Note Configuration Note; Hostname, IP /etc/rc.config.d/netconf.
  • Geting a servers Serial number from HP-UX 11.11 and up6 HP-UX - Security Patch Check Configuring Bastille to Operate with Ignite-UX Ignite Recovery (C.6.2.241) Document Create a Bootable Archive Tape via the Network Common Problems with NFS How To create the GNUPlot depot How to mirror the root disk - Itanium Resize /stand online syncsort keys.
  • AIX AIX - Tips Backup CentOS Cluster Database ESX GPFS HMC How-Tos HP-UX Installation ITM Linux LVM Networking NIM Others Performance Perl RHEL Shell Scripting Solaris Storage Tools Unix Virtualization VMware Wintools WPAR.
  • HP-UX release 11i version 2, nine volumes PDF, docs.hp.com and print. B9106-90010 June 2002. HP-UX release 11i version 1.6, one volume HTML, docs.hp.com and Instant Information. B9106-90007 June 2001. HP-UX release 11i version 1.5, seven volumes HTML, docs.hp.com and Instant Information. B2355-90688 December 2000. HP-UX release 11i version 1.

HP-UX Cheat Sheet This is a document that can be used for revision purposes for HP-UX.

UNIX cheat sheet

Find/Zip/Move/Delete files older than x days
find ./ -name “*.ARC” -mtime +1 -exec ls -l {} ;
find ./ -name “*.ARC” -mtime +1 -exec ls -l {} ;

find ./ -name “*.ARC” -mtime +1 -exec rm {} ;
find ./ -name “*.ARC” -mtime +1 -exec rm {} ;

Bind in peoplesoft. find ./ -name “*.ARC” -mtime +1 -exec gzip {} ;
find ./ -name “*.ARC” -mtime +1 -exec gzip {} ;

find ./ -name “*.arch” -mtime +1 -exec mv {} /u01/andy/;
find ./ -name “*.arch” -mtime +1 -exec mv {} /u01/andy/;

Delete the 500 oldest files
rm -f `ls -tr head -500`
rm -f `ls -tr head -500`

Cheat

Find and grep
find ./ -grep {} ; -print 2>/dev/null
find ./ -grep {} ; -print 2>/dev/null

Or…

find ./ -exec grep -l “string” {} ;
find ./ -exec grep -l “string” {} ;

list all files opened by a process
lsof -p
lsof -p

ls -l sorted by size
ls -l sort -k 5
ls -l sort -k 5

Hp-ux Lvm Cheat Sheet

du -sk * sort -n
du -sk * sort -n

cpio unzip syntax
cpio -idmv <
cpio -idmv <

man commands
man -k -displays the chapters containing the specified
man -shows the page
man -k -displays the chapters containing the specified
man -shows the page

pipes
mknod p
mknod p

Hp Ux Cheat Sheet Templates

Turn off auto indent and bracket matching in vi
:set noai nosm
:set noai nosm

Capture a control charater
ctl-v then press the control key (eg. backspace)

Configure ksh environment
To display the current settings

set -o
set -o

To set HP/UX stylee…

set -o vi
set -o vi-esccomplete
set -o vi
set -o vi-esccomplete

Show routing tables
netstat -r
netstat -r

Hp Ux Cheat Sheet Music

Check all logs for ORA- errors
grep ^ORA- *log cut -f2 -d”-“ cut -f1 -d: awk ‘{print “ORA-” $1}’ sort -u