HP-UX

HP-UX Cheatsheet #

HP-UX is Hewlett Packard Enterprise’s proprietary Unix operating system, known for its reliability and performance, particularly on HP’s PA-RISC and Itanium-based systems. Below is a comprehensive cheatsheet to help you get started with HP-UX, covering various commands and their descriptions.

System Information and Management #

CommandDescription
uname -aDisplay all system information
modelDisplay hardware model information
dmesgShow system boot messages
topDisplay real-time system statistics
ps -efList all running processes
swlistList installed software packages
swinstall -s <source> <package>Install a software package
swremove <package>Remove a software package
samSystem Administration Manager interface

User and Group Management #

CommandDescription
useradd <username>Add a new user
userdel <username>Delete a user
usermod -G <group> <username>Add a user to a group
groupadd <group>Create a new group
groupdel <group>Delete a group
passwd <username>Change a user’s password

Network Management #

CommandDescription
ifconfig -aDisplay all network interfaces
ping <hostname/IP>Send ICMP ECHO_REQUEST to network hosts
netstat -rnDisplay the routing table
route add <destination> <gateway>Add a static route
lanscanList all LAN interfaces
set_parmsConfigure network parameters

Disk Management #

CommandDescription
bdfDisplay disk usage in a human-readable format
du -sk <directory>Show disk usage of a directory
vgdisplayDisplay volume group information
lvdisplayDisplay logical volume information
mountDisplay all mounted filesystems
mount <device> <directory>Mount a filesystem
umount <directory>Unmount a filesystem
newfs /dev/<device>Create a new filesystem on a device

System Services and Daemons #

CommandDescription
sh /sbin/init.d/<service> startStart a service
sh /sbin/init.d/<service> stopStop a service
sh /sbin/init.d/<service> restartRestart a service
chkconfig --listList all services
chkconfig <service> onEnable a service to start at boot
chkconfig <service> offDisable a service from starting at boot

File Operations #

CommandDescription
cp <source> <destination>Copy files or directories
mv <source> <destination>Move or rename files or directories
rm <file>Delete a file
rm -r <directory>Delete a directory and its contents
chmod <permissions> <file>Change file permissions
chown <owner>:<group> <file>Change file owner and group
ln -s <target> <link>Create a symbolic link

HP-UX

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.