Linux commands for process operations

Source: Internet
Author: User
Linux Command for process operations-general Linux technology-Linux programming and kernel information. The following is a detailed description. Example

$ Vi yuefile1 // when you enter the yuefile for editing, use ctl + Z so that the process is suspended. The terminal displays:

[1] + stopped vi yuefile1

$ Vi yuefile2 // same as above

[2] + stopped vi yuefile2

$ Jobs

[1]-stopped vi yuefile1

[2] + stopped vi yuefile2

$ Ps

PID TTY TIME CMD

5117 pts/0 00:00:00 bash

5122 pts/0 00:00:00 vi

5123 pts/0 00:00:00 vi

5147 pts/0 00:00:00 ps

Vi yuefile1 and vi yueflie2 processes have been stopped. At this time, both bg (background Startup Process) and fg (foreground startup process) are started and run by vi yuefile2, but sometimes they are not expected to do so, therefore, you can add parameters when using bg or fg,

$ Fg 1 // vi yuefile1 is started.

I am a newbie. I want to look up the search term on Baidu for a long time, so I have no idea what search term to use.

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.