Use linuxps to query the start time of a process

Source: Internet
Author: User
Use linuxps to query the start time of a process ps command for common usage (for easy viewing of system processes) 1) psa displays all programs under the current terminal, including programs of other users. 2) ps-A displays all processes. 3) when listing programs in psc, the real command name of each program is displayed... information usage linux ps query process start time ps command common usage (easy to view system processes) 1) ps a displays all programs under the current terminal, including programs of other users. 2) ps-A displays all processes. 3) when listing programs in ps c, the real command name of each program is displayed without the path, parameter or resident service identifier. 4) the effect of this parameter is the same as that of the specified "A" parameter. 5) when listing programs, ps e displays the environment variables used by each program. 6) ps f uses ASCII characters to display the tree structure and express the relationship between programs. 7) the ps-H tree structure is displayed, indicating the relationship between programs. 8) ps-N shows all programs, except the programs under the ps command terminal. 9) ps displays the program status in the program signal format. Www.2cto.com 10) when listing programs in ps, contains the interrupted subroutine information. 11) ps-t <终端机编号> Specify the terminal number and list the status of the program that belongs to the terminal. 12) ps u displays the program status in user-based format. 13) ps x shows all programs, which are not distinguished by terminals. The most common method is ps-aux. then, a pipeline symbol is used to direct to grep to find a specific process and then operate on the specific process. Common parameters:-A displays all processes (equivalent to-e) (utility)-a displays all processes of A terminal, except for session lead-N ignore selection. -D: display all processes, but omit all session leads (utility)-x: Display processes without control terminals, and display the specific path of each command. Dx cannot be used together. (Utility)-p pid process uses the cpu time-u uid or username to select a valid user ID or user name-g gid or groupname to display all processes in the group. U username displays all processes under the user and detailed paths of each command. For example, ps U zhang; (utility)-f is all listed. it is usually used with other options. For example, the ps-fa or ps-fx and so on.-l long format (with fields such as F, wchan, and C)-j job format is www.2cto.com-o user-defined format. V displays s in the format of virtual memory in the signal format.-m displays all threads.-H displays the process layers (used with other commands, such as ps-Ha) (utility) environment (for example, ps-d e; ps-a e) (utility) h does not display the start time of the first line ps-eo lstart ps-eo etime. ps-eo pid, lstart, etime | grep pid example: ps-eo pid, lstart, etime | grep 4559 author lionlx

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.