HP-UX Common commands

Source: Internet
Author: User
Tags syslog

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.