Chapter 5, Section 4 ps, uname 2018.4.18

uname : Print the current system related information (kernel version number, hardware architecture, host name and operating system type, etc.).

      -a : show all information

      -m : display computer type

      -n : display the hostname on the network

      -r : Display the release number of the operating system

      -s : display the operating system name

      -v : display the operating system name

      -p : output processor type

      -i : output hardware platform

      -o : output the OS name

--version: display version information

PS

1 ) ps a displays all programs under the current terminal, including programs of other users.

2 ) ps -A shows all processes.

3 ) When ps c lists programs, it displays the real command name of each program without the path, parameter or resident service sign.

4 ) ps -e The effect of this parameter is the same as specifying the "A" parameter.

5 ) When ps e lists programs, it shows the environment variables used by each program.

6 ) ps f uses ASCII characters to display the tree structure to express the relationship between programs.

7 ) ps -H displays a tree structure, indicating the relationship between programs.

8 ) ps -N displays all programs, except the programs under the ps command terminal.

9 ) ps s displays the program status in the format of program signal.

10 ) When ps S lists the program, it includes the interrupted subroutine data.

11 ) ps -t < terminal number > specifies the terminal number and lists the status of the programs belonging to the terminal.

12 ) ps u displays the program status in a user-based format.

13 ) ps x  displays all programs, not differentiated by terminals

 psaux : View all processes in the system, using the BSD operating system format

  ps–le : View all processes in the system, using the LINUX standard command format ( PPID is the parent process number)

   When using the BSD manipulation format:

USER : which user the process was spawned by

    PID : The PID of the process

    %CPU : The percentage of CPU occupied, the higher the occupancy, the more resource-intensive the process is

    %MEM : The percentage of physical memory occupied, the higher the occupancy, the more resources the process consumes

    VSZ : The size of the virtual machine memory, in KB

    RSS : The size of the physical memory occupied, in KB

    TTY : in which terminal it is running

           tty1-tty7 represent local console terminals, tty1-tty6 are local character interface terminals,

tty7 is a graphic terminal, pts/0-255 represents a virtual terminal

    STAT : Process status

            R : running, S : sleep, T : stopped state, s : parent process, + : in background,

            Z : zombie process, < : high priority process, N : low priority process

     START : the start time of the process

     TIME : The operation time of the CPU occupied by the process (not the system time)

      COMMAND: The command name of the spawned process

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325986146&siteId=291194637