что означает «бесплатный вариант ps»?

Попробуйте Gimp или Shotwell - это очень просто (размер и больше).

1
задан 2 May 2017 в 02:03

3 ответа

Из man ps, справочная страница команды ps (только для выдержек):

   a      Lift the BSD-style "only yourself" restriction, which is imposed
          upon the set of all processes when some BSD-style (without "-")
          options are used or when the ps personality setting is BSD-like.
          The set of processes selected in this manner is in addition to
          the set of processes selected by other means.  An alternate
          description is that this option causes ps to list all processes
          with a terminal (tty), or to list all processes when used
          together with the x option.


   x      Lift the BSD-style "must have a tty" restriction, which is
          imposed upon the set of all processes when some BSD-style
          (without "-") options are used or when the ps personality
          setting is BSD-like.  The set of processes selected in this
          manner is in addition to the set of processes selected by other
          means.  An alternate description is that this option causes ps
          to list all processes owned by you (same EUID as ps), or to list
          all processes when used together with the a option.


   u      Display user-oriented format.

Таким образом, аргумент a позволяет ps показывать процессы всех пользователей, а не только текущий пользователь, если процессы подключены к терминалу.

x делает ps также включением процессов, которые не связаны с каким-либо терминалом в списке. Таким образом, ax вместе заставляет ps перечислять все процессы без ограничений.

u просто изменяет форматирование вывода и видимые столбцы.

] Как @steeldriver правильно упомянул в своем комментарии, ps немного особенный, потому что он поддерживает оба аргумента в стиле BSD (a) и стиле GNU (-a). Поэтому ps aux не совсем то же самое, что и ps -aux, хотя для упрощения миграции может быть реализовано то же самое. В соответствующем параграфе справочной страницы говорится:

   Note that "ps -aux" is distinct from "ps aux".  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 be 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.  This
   behavior is intended to aid in transitioning old scripts and habits.
   It is fragile, subject to change, and thus should not be relied upon.
3
ответ дан 22 May 2018 в 23:01
  • 1
    @steeldriver Ты прав, спасибо. Я добавил это. – Byte Commander 2 May 2017 в 02:39

Из man ps, справочная страница команды ps (только для выдержек):

a Lift the BSD-style "only yourself" restriction, which is imposed upon the set of all processes when some BSD-style (without "-") options are used or when the ps personality setting is BSD-like. The set of processes selected in this manner is in addition to the set of processes selected by other means. An alternate description is that this option causes ps to list all processes with a terminal (tty), or to list all processes when used together with the x option. x Lift the BSD-style "must have a tty" restriction, which is imposed upon the set of all processes when some BSD-style (without "-") options are used or when the ps personality setting is BSD-like. The set of processes selected in this manner is in addition to the set of processes selected by other means. An alternate description is that this option causes ps to list all processes owned by you (same EUID as ps), or to list all processes when used together with the a option. u Display user-oriented format.

Таким образом, аргумент a позволяет ps показывать процессы всех пользователей, а не только текущий пользователь, если процессы подключены к терминалу.

x делает ps также включением процессов, которые не связаны с каким-либо терминалом в списке. Таким образом, ax вместе заставляет ps перечислять все процессы без ограничений.

u просто изменяет форматирование вывода и видимые столбцы.

] Как @steeldriver правильно упомянул в своем комментарии, ps немного особенный, потому что он поддерживает оба аргумента в стиле BSD (a) и стиле GNU (-a). Поэтому ps aux не совсем то же самое, что и ps -aux, хотя для упрощения миграции может быть реализовано то же самое. В соответствующем параграфе справочной страницы говорится:

Note that "ps -aux" is distinct from "ps aux". 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 be 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. This behavior is intended to aid in transitioning old scripts and habits. It is fragile, subject to change, and thus should not be relied upon.
3
ответ дан 18 July 2018 в 13:58

Из man ps, справочная страница команды ps (только для выдержек):

a Lift the BSD-style "only yourself" restriction, which is imposed upon the set of all processes when some BSD-style (without "-") options are used or when the ps personality setting is BSD-like. The set of processes selected in this manner is in addition to the set of processes selected by other means. An alternate description is that this option causes ps to list all processes with a terminal (tty), or to list all processes when used together with the x option. x Lift the BSD-style "must have a tty" restriction, which is imposed upon the set of all processes when some BSD-style (without "-") options are used or when the ps personality setting is BSD-like. The set of processes selected in this manner is in addition to the set of processes selected by other means. An alternate description is that this option causes ps to list all processes owned by you (same EUID as ps), or to list all processes when used together with the a option. u Display user-oriented format.

Таким образом, аргумент a позволяет ps показывать процессы всех пользователей, а не только текущий пользователь, если процессы подключены к терминалу.

x делает ps также включением процессов, которые не связаны с каким-либо терминалом в списке. Таким образом, ax вместе заставляет ps перечислять все процессы без ограничений.

u просто изменяет форматирование вывода и видимые столбцы.

] Как @steeldriver правильно упомянул в своем комментарии, ps немного особенный, потому что он поддерживает оба аргумента в стиле BSD (a) и стиле GNU (-a). Поэтому ps aux не совсем то же самое, что и ps -aux, хотя для упрощения миграции может быть реализовано то же самое. В соответствующем параграфе справочной страницы говорится:

Note that "ps -aux" is distinct from "ps aux". 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 be 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. This behavior is intended to aid in transitioning old scripts and habits. It is fragile, subject to change, and thus should not be relied upon.
3
ответ дан 24 July 2018 в 20:18

Другие вопросы по тегам:

Похожие вопросы: