One of the common Linux summaries

Source: Internet
Author: User
The following are commonly used commands in Linux: 1 in linux tomcat can dynamically display printed content tail-fcatalinaout2Linux system information View command uname-a to view the kernel operating system

The following commands are commonly used in Linux:

1. use tomcat in linux to dynamically display printed content

Tail-f catalina. out

2. command for viewing Linux system information

# Uname-a # View kernel/operating system/CPU information
# Cat/proc/version # view the kernel
# Cat/etc/issue # view the operating system version
# Head-n 1/etc/issue # view the operating system version
# Cat/proc/cpuinfo # View CPU information
# Hostname # view the computer name
# Lspci-TV # List all PCI devices
# Lsusb-TV # List all USB devices
# Lsmod # List loaded kernel modules
# Env # View environment variable resources
# Free-m # View memory usage and swap zone usage
# Df-h # view the usage of each partition

View memory:
Less/proc/meminfo
View cpu:
Less/proc/cpuinfo

Dynamically view memory usage of a process
[C-sharp] view plaincopyprint?
3. top command
Top-d 1-p pid [, pid...] // Set it to delay 1 s. The default value is delay 3 s.
To Sort by memory usage, shift + m (Sort by memory usage)

Static view of memory usage of a process

[C-sharp] view plaincopyprint?
4. pmap command
Pmap pid

5. ps command
Ps aux | grep process_name

6. view the status file in the/proc/process_id/folder.
Name: php
State: R (running)
SleepAVG: 0%
Tgid: 21574
Pid: 21574
PPid: 10005

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.