![]() ![]() The output of the two shows little difference, but the display style is different. Warning:bad PS syntax, perhaps a bogus '-'? See Ĭomprehensive: The use of the two direct selection of PS aux If you run Ps-aux >/dev/null, you will get the following line of warning message This behavior is intended to help transform old scripts and habits. It is fragile and is about to change and therefore should not be relied upon. If the user name "X" does not exist, PS will be interpreted as "PS aux" and a warning will be printed. The standards for POSIX and UNIX require "Ps-aux" to print all processes for users named "X", and to print all the processes that will be selected by the-a option. Please note that "Ps-aux" differs from "PS aux". This behavior are intended to aid in transitioning old scripts and habits. It is fragile, subject to change, and thus should not being relied upon. ![]() The POSIX and UNIX standards require that ' ps-aux ' Print all processes owned by a user named ' X ', as well as printing all Processes that would is selected by The-a option. If the user named "X" does not exist, this PS may interpret the command as "PS aux" instead and print a warning. Note that the "Ps-aux" is distinct from "PS aux". PS Displays information about a selection of the active processes. If you want a repetitive update of the selection and the displayed information, use Top (1) instead. Http://The main discussion here is the difference between PS aux and ps–aux, and the difference between PS aux and ps–ef. Specific parameters can refer to man PS or PS tool identifies 5 status codes for the process:ĭ non-interruptible uninterruptible sleep (usually IO) Stop (process received Sigstop, SIGSTP, Sigtin, Sigtou signal after stop running run) Zombie (The process has been terminated, but the process descriptor exists until the parent process calls WAIT4 () after the system call is released)ĥ. ![]() Non-interruptible (receive signal does not wake up and not run, process must wait until interrupt occurs)Ĥ. Interrupt (dormant, blocked, waiting for a condition to form or receive a signal)ģ. Running (running or waiting in the running queue)Ģ. There are 5 states of processes on Linux:ġ. The KILL command is used to kill the process. PS gives us a one-time view of the process, it provides a view of the results is not dynamic continuous, if you want to monitor the process, you should use the top tool. In short, most of the information can be obtained by executing the command. Use this command to determine which processes are running and running, whether the process is complete, if the process is zombie, which processes are consuming too many resources, and so on. To monitor and control the process, you must first understand the current process, that is, you need to see the current process, and the PS command is the most basic and very powerful process view command. The PS command lists the current snapshots of those processes, which are those that are executing the PS command at the moment, and if you want to display process information dynamically, you can use the top command. The PS command is used to list those processes that are currently running on the system. ![]() The PS command in Linux is the abbreviation for process status. The items shown are: UID, PID, PPID, C, Stime, TTY, Time, CMD Ps-ef is the process of displaying Java in a standard format The items shown are: USER, PID,%cpu,%MEM, VSZ, RSS, TTY, STAT, START, Time, COMMAND PS aux is the BSD format to display the Java process They are all used to display the currently running process, but: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |