Solaris process management and process management

Source: Internet
Author: User

Solaris process management and process management

View the dynamic and static information of the Process, foreground and background processes, and kill the process.

Three processes: interaction process, daemon process, and batch processing process (a process sequence independent of the Terminal)

Ps

View ssh-related processes: ps-ef | grep ssh grep is called a filter character.

Cmd command to generate a process. The start time of the Stime process, ppid, parent process id, and tree structure.

View dynamic processes prstat top interactive check and display valid processes on the System

Process start mode: Manual start and scheduling start.

Manual start: it can be divided into front-end and back-end (add one more at the end of the line, with space), process scheduling in front and back-end, jobs, fg, bg.

Jobs checks the fg job number of the background process and transfers the background process to the foreground. Ctrl Z: Move the foreground process to the background and stop it. If you want it to continue running, add the bg job number.

Crtl + C interrupts the command being executed.

Kill + pid to Kill the specified process.

Kill-l lists all processes.

Botnets: they do not run and occupy resources. Orphan process: running, occupying resources. The parent process died and was adopted by init 1.

Nohup is generally used together with and without hanging up the running process. In this way, the task will not be terminated because of the system's sudden shutdown.

Xargs-I command {}

Three methods of executing multiple commands:

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.