search

Home  >  Q&A  >  body text

centos - ps -C nginx --no-header | wc -l,这个命令不太懂

ps 后面除了 nginx ,其他的参数不太理解呀

PHPzPHPz2826 days ago1119

reply all(2)I'll reply

  • 某草草

    某草草2017-04-26 09:03:26

    | The pipe character passes the results from the previous PS to the later processing in strips
    wc -l to check how many strips there are

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-04-26 09:03:26

    I feel like I wrote it wrong:
    -c simple name of the executable
    -C complete command line
    --no-headers does not print the beginning (or header file)

    wc -l counts the number of lines

    reply
    0
  • Cancelreply