11/28/2023 0 Comments What does command ps ef doeThis version of ps accepts several kinds of options:ġ UNIX options, which may be grouped and must be preceded by a dash.Ģ BSD options, which may be grouped and must not be used with a dash. See man ps (the one on your system, on-line can have different explanations). To see every process on the system using BSD syntax: To see every process on the system using standard syntax: Which should you use? What do you want to do with the output?Īlso, see the EXAMPLES section (which does list -ef rather prominently, and doesn't use the BSD e option at all): EXAMPLES Processes owned by other users or not on a terminal. The selection to be the set of all processes filtered to exclude That are owned by you alternately, this may be described as setting The process selection to include processes on other terminals (TTYs) The use of BSD-style options will also change You can override this with the PS_FORMATĮnvironment variable. The default display and show the command args (args=COMMAND) instead The use of BSD-style options will add process state (stat=STAT) to Hh:mm:ss format (time=TIME), and the executable name (ucmd=CMD). It displays the process ID (pid=PID), the terminalĪssociated with the process (tname=TTY), the cumulated CPU time in (euid=EUID) as the current user and associated with the same terminalĪs the invoker. See the c option, the format keyword args, andĮ Show the environment after the command.Ĭlearly, you're not selecting all processes using the ef options, but are using the default listing of processes, plus some additional formatting: By default, ps selects all processes with the same effective user ID L, the NLWP (number of threads) and LWP (thread ID) columns It alsoĬauses the command arguments to be printed. Other UNIX-style options to add additional columns. These are different (sections SIMPLE PROCESS SELECTION, OUTPUT FORMAT CONTROL and OUTPUT MODIFIERS respectively): -e Select all processes. So, ef uses the BSD e and f options, and -ef uses the Unix -e and -f options. Man ps says: This version of ps accepts several kinds of options:ġ UNIX options, which may be grouped and must be preceded by aĢ BSD options, which may be grouped and must not be used with aģ GNU long options, which are preceded by two dashes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |