Summary of common commands for Linux systems (iv) procedures and resource management

Source: Internet
Author: User
Tags disk usage

 Program and Resource Management
Classification Command Options Annotations
Background management & command+& Put a task in the background
CTRL + Z   Pausing a task
Fg [%number] The background program is pushed to the foreground, number represents the process numbers, and no parameter indicates that the most recent process is pushed to the foreground
Jobs   Query all background tasks
System Status Monitoring Ps   Displays the processes running on the current system, PS-AUX=PS-EF, all of which represent all current processes of the system
-A (-e) All processes
-U Show Users
-X List all TTY processes
-F Full display of process information
W   View current system load, display the content in order: time, System run time, number of logged on users, average load
Vmsat   Monitor the current system status and display the contents in turn procs,memory,swap,io,system,cpu
Procs (R,B) Show process-related information; R: The number of processes running and waiting for CPU time slices, if the long-term is greater than the number of CPUs, it indicates that the CPU is not enough; B: Indicates the number of processes waiting for a resource, if long-term greater than 1 requires attention
Memory memory-related information; SWPD: Amount of memory switched to the swap partition free: Amount of memory currently idle buff: Buffer size cache: Buffer size
Swap Memory Exchange Situation SI: The number of memory into the swap area; So the amount of memory entered by the swap zone
Io disk usage; Bi Read disk Bo write disk
System Shows the number of interrupts that occurred during the acquisition interval
Cpu Displaying CPU usage and loading state
Top   Dynamically monitor the resources of the system, changing every 3 seconds
Free Options View Memory usage
-B (-K,-M) Units in bytes (in KB,MB units)
-T Show total Totals
Netstat Options Show Network status
-lnp Which ports are currently enabled on the system
-an Used to display network connection status
Ping [Options] Target Test the connection status of the target to the local machine
  -C User-specified test how many times, if not add, will be endless testing, can be crtl+c forcibly stop
Kill Options PID or task number Used to stop or kill a process
-1 Let the process read the configuration file again
-9 Force a process or task to be killed
-15 Stop process
Network settings Ifconfig   Displays IP-related information for the current network card (subnet mask, gateway, etc.)
Device name (e.g. eth0) View network card information for this device
Device name (such as eth0) +ip address Configure the IP address for the NIC
Device name (such as eth0) +down=ifdown Disabling the eth0 NIC
Device name (such as eth0) +up=ifup Enable Eth0
Service scripts Service Service Script Name script parameter Restart network services such as service network restart
Start/stop Restart Status  
Chkconfig   View all back-office services

Summary of common commands for Linux systems (iv) procedures and resource management

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.