Summary of information or troubleshooting commands under Linux systems

Source: Internet
Author: User

1. Check the user's online and login status

W-View Online users

Last-View recent user logins


2. View System command Execution history

History


3. View the process information that the system is running now

Pstree-a (simple result)

PS aux (Detailed results)


4. View network connection Information

Netstat-ntlp

Netstat-nulp

Netstat-nxlp


5. View CPU and Memory run information

Free-m # View Current Memory usage

Uptime # to see how long the system is running

Top # View System process information (dynamic)


6. View hardware Information

LSPCI # View All PCI devices

Dmidecode


7. View mount point and file system

Mount

Cat/etc/fstab

Df-h

PVs

VGs

Lvs


8. System logs and kernel messages

Dmesg

Less/var/log/message

Less/var/log/secure

Less/var/log/auth


9. View Scheduled Tasks

ls/etc/cron* + Cat

Summary of information or troubleshooting commands under Linux systems

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.