Package: procps
Version: 2:3.3.15-2
Severity: minor
File: /usr/share/man/man1/ps.1.gz

All of these,

  OUTPUT FORMAT CONTROL
       -c     Show different scheduler information for the -l option.
       --context
              Display security context format (for SELinux).
       -f     Do full-format listing. This option can be combined with many 
other UNIX-style options to add additional columns.  It also
              causes the command arguments to be printed.  When used with -L, 
the NLWP (number of threads) and LWP (thread ID) columns
              will be added.  See the c option, the format keyword args, and 
the format keyword comm.
       -F     Extra full format.  See the -f option, which -F implies.
       j      BSD job control format.
       -j     Jobs format.
       l      Display BSD long format.
       -l     Long format.  The -y option is often useful with this.
       -M     Add a column of security data.  Identical to Z (for SELinux).
       s      Display signal format.
       u      Display user-oriented format.
       v      Display virtual memory format.
       X      Register format.
       Z      Add a column of security data.  Identical to -M (for SELinux).

don't have their

       (equivalent to -o "%X %Y %Z")

mentioned.

Let's say the user tries one, likes it, except for say, one column.

Well, he has to work backwards, from the man page's cross reference of
what HEADER names correspond to what format names, to piece together
what the missing (from the man page)
       (equivalent to -o "%X %Y %Z")
hopefully is, and then finally tweak that.

Therefore, in addition to adding the
       (equivalent to -o "%X %Y %Z")
lines to the man page, please add a new option, perhaps named:

--show-format
      Just print the --format string that would be needed to achieve the
      exact same output of all the other switches (or none) given.

      Examples:
      $ ps --show-format
      "%p %y %x %c"
      $ ps --show-format -u
      "%p %y %x %c %X %Y %Z..."

In fact show the long format too. And maybe even the header strip. And
how to write it for both "personalities".

Reply via email to