List processes

To list processes, use the ps operator. If no arguments are included, you will get all processes. This command lists processes whose command line contains 'postgres'.

The ps operator produces a stream of Process objects. These can be piped to other commands for further processing. For example, this command sends signal 9 to all processes owned by djt:

ps -u djt | map (p: p.signal(9))

  • github
  • Twitter
  • email