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