1. Model
# model
2. Number of CPUs
# Top
3. Number of drives
# Ioscan-func Disk
4. Hard disk size information
# disk/dev/rdsk/c2t5d0
5. View the operating system version and license
# uname-a
6. View system memory
# DMESG
7. View the file system
# BDF
8. View the volume group, the logical volumes included in the volume group, and the physical disks that are included in the volume group
# vgdisplay-v Vg100
9. Check the status of the network card
# Lanscan
10. Check the network card's name, IP address, gateway, subnet mask and other configuration information
# more/etc/rc.config.d/netconf
11. Configure the IP address
# ifconfig Lan0 192.168.1.0 255.255.255.0
12. View the network card address
# ifconfig Lan0
13. View routing Information
# Netstat-an
14. Configure Routing Information
#/usr/sbin/route Add default 198.218.1.254
15. Restart your computer
# reboot
# shutdown
16. Turn off the computer
# Shutdown-hy 0
# init 0
17. View the operating level of the system
# Who-r
18. View the current login name
#logname
19. See what the logged-in user is doing
# Whodo
20. View the process
# Ps-ef | grep xxx
21. log file Query
/var/adm/syslog/syslog.log//system commonly used information, such as configuration, modification, startup, shutdown and other information
/var/adm/syslog/mail.log//e-mail information
/var/adm/syslog/swinstall.log//information generated by software installation
/var/adm/syslog/swremove.log//Software uninstallation of information generated
/var/adm/sulog//Execution of SU's case
/VAR/ADM/BTMP//All registration failed information
/VAR/ADM/VTMP//All registered information
Viewing the log is mainly to see keywords panic, warning, err and other information, such as:
Cat/var/adm/syslog/syslog.log | grep panic
Cat/var/adm/syslog/syslog.log | grep warning
Cat/var/adm/syslog/syslog.log | grep err
22. View GID and UID information
#/usr/bin/id
This article is from the "Girl Technology" blog, please be sure to keep this source http://dreamerhan.blog.51cto.com/3907965/1747227
HP-UX Common commands