ps

    Print the command name of a selected Linux process.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.1.1
    License
    Apache-2.0
    Last updated
    14 hours ago
    Downloads
    9

    #ps

    Print the command name of a selected Linux process.

    #Usage

    moonx cli/ps -p 1 -o comm=

    #Common options

    OptionDescription
    -p VALUE, --pid VALUESelect a positive numeric process ID.
    -o VALUE, --format VALUEPrint selected no-heading process fields.
    --helpShow help.
    --versionShow the version.

    #Notes

    Reads one /proc/PID/stat record for each selection. No-heading fields include comm, pid, ppid, pgid, sid, tpgid, state, nice and nlwp. Repeat -o FIELD= or use comma-separated fields. Names must be printable ASCII. A missing process returns status 1 with empty output.

    See the compatibility guide for the supported profile.

    Source Files