Study Linux notes (6) -- process operations, linux --

Source: Internet
Author: User

Study Linux notes (6) -- process operations, linux --
Process scheduling and management:

A process is the basic organizational unit of program resources in the operating system, including program resources, data memory, address space, and other resources. threads are the basic unit of program execution, it is also the control unit for cpu scheduling (Lightweight Process; the process has an independent address space, the thread does not exist, and a space error will lead to a blue screen; the thread cannot exist independently, it is created by a process (fork, in linux), Thread; relatively speaking, the cpu consumed by the Thread, and the memory is smaller than the process ).

View process:

# Pa-a (view all processes)

# Ps-u (view User Information)

# Ps-x (view backend process parameters)

# Ps-aux (most viewed and most informative) | more
Terminate process:

Kill process number kill-9 process number, which is very powerful and can be terminated directly

View Real-Time Processes (Dynamic Monitoring ):

# Top: load average. Check the current system load. If the sum of 3 is greater than 0.6, the system load is tight.

Monitor specific users:

Enter u press enter in the monitoring box, and then enter the user name. Terminate the specified process: Enter k press enter, and then enter the process ID. Specify the system status update time: top-d 10: the Update time is 10 seconds.

The Time Command is as follows:

# Date # cal

Monitoring Network status information:

# Netstat-an monitoring connection: ping is the same as windows;

View the illegal port and the process ID:

# Netstat-anp, and then you can # kill-9 process number.

Set the task scheduling command:

Crontab: # crontab-e (set task) #0 2 **** date>/home/date (minute, hour, day, month, week, cannot be accurate to seconds, execute at intervals, data>/home/date1)

How can I schedule multiple tasks? 1. Write it directly in crontab-e. 2. All tasks can be written to an executable file (shell programming) data. sh.
Cancel task scheduling: crontab-r-l is a list.

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.