Common commands in Linux System (4) program and resource management, Common commands in linux

Source: Internet
Author: User

Common commands in Linux System (4) program and resource management, Common commands in linux

 Program and Resource Management
Category Command Option Annotation
Background Management & Command + & Move the task to the background
Ctrl + z   Pause a task
Fg [% Number] When the background program is pushed to the foreground, the number indicates the process number. If no parameter is added, the latest process is pushed to the foreground.
Jobs   Query all background tasks
System status monitoring Ps   Displays the processes running in the current system. ps-aux = ps-ef indicates that all processes in the current system are displayed.
-A (-e) All processes
-U Show user
-X List all tty Processes
-F Complete display of Process Information
W   View the current system load. The displayed content is time, system running time, number of logged-in users, and average load.
Vmsat   Monitor the current system status. The displayed content is procs, memory, swap, io, system, and cpu.
Procs (r, B) Displays process information. r: Number of processes running and waiting for cpu time slice. If the number of cpu is greater than the number of cpu for a long time, the cpu is insufficient. B: The number of processes waiting for resources, note that
Memory Memory information; swpd: the number of memories in the SWAp partition. free: the number of idle memories. buff: the buffer size. cache: the cache size.
Swap Memory switching si: Number of memory entries in the SWAp zone; so Number of memory entries in the SWAp Zone
Io Disk usage; bi read disk bo write Disk
System Display the number of interruptions during the collection Interval
Cpu Display cpu usage status
Top   The resources occupied by the dynamic monitoring process are changed every 3 seconds.
Free [Option] View memory usage
-B (-k,-m) Unit with bytes (unit with kb and mb)
-T Show total
Netstat [Option] Display network conditions
-Lnp Ports enabled by the current system
- Used to display network connection status
Ping [Option] Target Connection status between the test target and the Local Machine
  -C The number of tests specified by the user. If this parameter is not added, the test will continue endlessly and the crtl + c can be forcibly stopped.
Kill [Option] PID or task number Used to stop or kill a process
-1 Allow the process to re-read the configuration file
-9 Force kill process or task
-15 Stop a process
Network Settings Ifconfig   Displays IP information about the current NIC (subnet mask, gateway, etc)
Device Name (such as eth0) View the NIC information of this device
Device Name (such as eth0) + IP Address Configure an IP address for this Nic
Device Name (such as eth0) + down = ifdown Disable eth0 Nic
Device Name (such as eth0) + up = ifup Enable eth0
Service script Service Service Script Name Script Parameters For example, service network restart restarts the network service.
Start/stop restart status  
Chkconfig   View All background services

Related Article

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.