Linux system process management commands

Source: Internet
Author: User
Linux system Process Management Command 1. PSps sued when the snapshot of the progress was raised. Usage overview: ps [option] depicts the process information of the selected activity. If you want to inherit the performance update information, the app top (1) current version ps will withstand... information & nbsp; | & nbsp; Linux system Process Management Command 1. PS stands for the snapshot of the process being upgraded. Usage overview: ps [option] depicts the process information of the selected activity. If you want to inherit the performance update information, the application top (1) current version of ps has undergone a variety of options: 1. UNIX options, which can be grouped and must have a "-" 2. BSD option, which can be combined. "-" is not required. 3. GNU long option, which is an example of the option that requires "--" difference. it can be freely combined. However, when there is a bicker, there are some identical options, and its functions are the same, this is due to standardization and the application of ps. Note: "ps-aux" is different from "ps aux". Posix and Unix standard requests "ps-aux" to print out all the processes, with the "x" parameter. The a parameter prints all processes. If the user name "x" does not exist, this ps will be interrupted, and "ps aux" will replace a warning. this behavior is concealed to sponsor traditional scripts and customs. By default, the ps selects all valid user IDs as the representation of the current user and the relevant terminal. It represents the ID of the process, the end number related to the process, the CPU time, and the executable name, the output is an unordered kill application. The BSD option will improve the process status and performance order parameters (instead of the executable measure name). you can ignore the two environmental variables of ps. the application of the BSD sample option will also change the process selection, the process of pregnancy in the rest of the terminal. Example: look at every process in the system, apply standard action: ps-e ps-ef ps-eF ps-ely use Bsd action to view every process ps ax ps axu print a process tree: ps-ejH ps-axjf: ps-eLf ps axms: ps-eo euser, ruser, suser, fuser, f, comm, lable ps axZ ps-eM view every root-running process ps-U root-u root u view the process according to a user's decision: ps-eo pid, tid, class, rtprio, ni, pri, psr, pcpu, stat, wchan: 14, comm ps axo stat, euid, ruid, tty, tpgid, sess, pgrp, ppid, pid, pcpu, comm ps-eopid, tt, user, fname, tm Out, f, wchan print syslogd ID ps-C syslogd-o pid = print PID 42 name: ps-p 42-o comm = ps-x will show all your processes, and even those processes without a dedicated terminal ps-a if you want to apply ps, you can obtain the list of processes attached to each terminal. Ps x-forest can easily check the structure of processes. it shows how various processes in the system are correlated. Ps au ps al 2, top by h can enter the top sponsor Help for interactive Commands-procps version 3.2.7 sponsorship Z, B Global: "Z" change color ING; 'B' bold (can/cannot) l, t, m Summary: 'L' uniform value, performance/do not show the first line 'T' performance/do not show obligations/CPU status 'M' memory information 1, I SMP performance: 1 single/scattered status; I Irix/Solaris mode f, o. field/column: 'F' promotes or removes the sequence of 'O' changes. select the sorting field <,>. move sort field: '<'left shift column Field'> 'right shift column field R, H. 'R' is sorted normally; 'h' represents threads c, I, S. 'C' command name/line 'I' idle obligations 'S' cumulative effort x, y. highlighted: 'X' sorting field; 'Y' running process z, B. 'z 'Color/monochrome; 'B' bold/reverse (only 'X', 'y') u. represents the specified user n or #. set the maximum performance of obligations k, r management obligations: 'K' delete; 'R' reniced or s set the update time W write settings file q exit >>> (order Performance '. 'You need a visible performance window for obligations. ') press hh to enter top sponsors. multiple application windows, each of which has separate settings options (coloring, fields, sorting, etc ). in the current window, the Overlord summarizes the region and gives feedback on your order. window obligations can be closed & opened, growing/shring others. when there is no obligation to perform performance, some orders cannot be used ('I', 'R', 'n', 'C', etc.) until a differential learning port is activated, (make it the current window ). you can change the current window through: 1) loop forward/backward; 2) select a specific field Group 3) exit the color screen. order. convert the presentation mode to multi-performance/single G. select another Field group and make it current, or select a number 1 = Def; 2 = Job; 3 = Mem; 4 = Usr. g. change the name of the current window/field Group * a, w. the loop goes through four windows: "a" = forward; 'W' = backward *-,_. show/Hide '-' current window; '_' show/hide this screen will be displayed as between obligations respectively. however, you can make it bigger or smaller and use the 'n' and 'I' commands. then you can: * =, +. obligation to rebalance: '= 'current window;' + 'indicates the meaning of each window (which forces the current window or each window to be displayed) field: PID = process id user = USER name PR = priority NI = nice value VIRT = fake image (kb) RES = Resident size (kb) SHR = shared memory size (kb) S = process status % CPU = CPU application % MEM = application RES huge TIME + = cpu time hundredthsT TY = dual TtyTime = CPU time Code = Code size DATA = Code size and stack size (kb) Command = Command name man top translation top performance linux duty usage overview: top-hv |-bcHisS-d delay-n iterations-p pid [, pid...] description: top measures provide a dynamic and timely inspection system process, which can display the system summary information and a series of processes currently being managed by the server kernel. System Summary of performance information and examples, sorting, performance process details this measure provides a limited interactive interface for process control, there are still more extended ports for personal settings-every aspect of its manipulation, when top mentioned in all documents, however, you are free to name measures as you desire. The new name can be an individual name (alias), which will be mapped to the top performance and used to read and write a configuration file. Overview: content of the document table in the document's career 1. command line options; 2. Fields/columns; a. description of fields; B. selection and sorting columns; 3. interactive order a, global order B, General Area Order c, compulsory area order d, color ing 4, conversion mode a, window involving B, command line window 5, file, system settings file B, personal private settings file 6, Stupid tricks sampler a, kernel Technology B, bounce window c, Big Bird Window 7, bug 8, top History 3, kill-send A signal to process usage overview kill [-signal |-s signal] pid... kill [-L |-V, -- version] kill-l [signal] depicts the default signal of kill as an ordering word. Use-l or-L to list valid signals. Out-of-the-box valid commands include: heup, INT, KilL, STOP, CONT, 0. There are three methods for changing the command term:-9-SIGKILL-KILL. The negative PID value can be used to select all process groups. in the PS output, check the PGID column. a-1 PID is exclusive. It represents all processes except killing itself and the init process. The following lists valid singals words, including start names, numbers, and activities, name Num Action Description 0 0 n/a exit code indicates if a signal may be sent ALRM 14 exit HUP 1 exit INT 2 exit KILL 9 exit this signal may not be blocked PIPE 13 exit POLL exit PROF exit TERM 15 exit USR1 exit USR2 exit VTALRM exit STKFLT exit may not be implemented PWR ignore may exit on some systems WINCH ignore CHLD ignore URG ignore TSTP stop may Interact with the shell TTIN stop may interact with the shell TTOU stop may interact with the shell STOP stop this signal may not be blocked CONT restart continue if stopped, otherwise ignore ABRT 6 core FPE 8 core ILL 4 core QUIT 3 core SEGV 11 core TRAP 5 core SYS core may not be implemented EMT core may not be implemented BUS core dump may fail XCPU core core dump may fail XFSZ core Dump may fail example: kill [-9] ID kill-9-1 kill the process you can kill-1 11 transfer number 11 into a signal name kill-L list valid signal select kill 123 543 2341 send default signals to all processes. Query other items: pkill (1), skill (1), kill (2), renice (1), nice (1), signal (7), killall (1 ). killall process name
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.