A


Audio files playing - cat <file>.wav > /dev/audio
 

B


Boot display and modify partition - man setboot

Boot user kernel:
   BO PRI
   IPL ? Y
   hpux (0;)/stand/vmunix.prev

Boot single user mode:
   BO PRI
   IPL ? Y
   hpux -is

Boot change Console:
   PATH CON GRAPHICS(n) ................. Graphic Card
   PATH CON SERIAL_1.9600.8.none ... Terminal at Serial #1
 

C


Copy Directories - cd <fromdir> ; tar cvf - . | (cd <todir> ; tar xfp -)
 

D


DOS Disk Directoty - dosls /dev/floppy/c0t1d0

Disc Information - diskinfo -v /dev/rdsk/c0t6d0

Devices Listing - ioscan -fun || ioscan -nFC disk

E
 

F


Filesystem blocksize - /usr/sbin/fstyp -v /dev/vgNN/lvolMM

find and exec - find <dir> -user <uid> -exec chown <uid> {} \;
 

G


Graphics Resultion - /opt/graphics/common/bin/setmon

H
 

I

Increase disk size (e.g. 50MB):
/usr/sbin/umount /dev/vg00/lvolX
/sbin/lvextend -l 50 /dev/vg00/lvolX
/sbin/extendfs /dev/vg00/rvolX
 

J
 

K

Keyboard Configuration - ~/.Xdefaults

Keymapping show
    od -c <Return>
    <press any key>
    <Return><^D>

Kernel Configuration
   cd /stand
   vi system
   config system
   mv vmunix vmunix.prev
   mv vmunix_test vmunix
   reboot
 

L


LAN Information - lanscan

M


Manuals format to ASCII - man <cmd> | col  -b > file.ascii

Mail:

mail -d <user> << EOF
<text>
EOF

Mouse Configuration - ~/.Xdefaults
 

N


Network Setup - /sbin/set_params addl_network

Network Change IP Address - /sbin/set_params ip_address
 

O


OpenView Temporary Licence - ovstop ; cd /var/opt/ifor ; rm .instant nodelock ; ovstart
 

P


Patch Remover - cleanup


Pipe (Fifo) - mknod file p
 

R


Remote backup - tar cvf <file> | remsh <host> 'dd of=/dev/rmt/0mn'

Rockridge Format CD mounting:
   cat > /etc/pfs_fstab
   /dev/dsk/c5t2d0 /SD_CDROM pfs-rrip xlat=unix 0<Return><^D>
   nohup /usr/sbin/pfs_mountd &
   nohup /usr/sbin/pfsd &
   /usr/sbin/pfs_mount /SD_CDROM
   /usr/sbin/pfs_umount /SD_CDROM
 

S


Shared Library Path set/change - chatr

Software List installed - swlist -l product
 

T


HP-UX single screen - export TERM=70096

Terminal Escape Sequences - e=`echo e | tr e "\033"` ; echo "${e}[12;38H${e}[7mHello${e}[0m${e}[20;1H"
 

U


User Processes show - ps -u user1[,user2]
 

V


vi - flip lines in file - :g/^/m0
 

W

X

Y

Z