- ENVIROMENTAL VARIABLES
ncps - Searches the process table and displays the results.
ncps [-c <regex>] [--ci] [--cf] [--cF] [--eg] [--egi] [-f] [-F] [-J] [-j <JIDs>] [--ji] [--idle] [--kern] [--kerni] [-m <pctmem>] [--mi] [-n] [--nc] [-p <pctcpu>] [--pi] [--pid <PIDs>] [--pidi] [-r <RSS>] [--ri] [-s] [--si] [--self] [--st <states>] [--sti] [--stats] [-t <times>] [--ti] [--tty] [-u <UIDs>] [--ui] [--vs <VSZs>] [--vsi] [-w <WChans>] [--wi] [-z]
No flags needed passed to use. By default it will show all processes except for its own and the idle process.
The info column is provided by Proc::ProcessTable::InfoString. That POD has the information on what they all mean. At the time of writing, this is as below.
States Description Z Zombie S Sleep W Wait R Run Flags Description O Swapped Output E Exiting s Session Leader L POSIX lock advisory + has controlling terminal X traced by a debugger F being forked
Search procs using the matching regex.
Invert the command search.
Show children minor faults.
Show children major faults.
Search for proccs with a EGID set.
Invert the EGID set search.
Search for proccs with a EUID set.
Invert the EUID set search.
Show minor faults.
Show major faults.
Show jail IDs.
A comma seperated list of JIDs to search for.
Invert the JIDs earch.
Show the idle kernel process.
Searches for kernel processes.
Invert the kernel process search.
Memory usage percent to search for.
Invert the memory usage search.
Show number of threads.
CPU usage percent to search for.
Invert the CPU usage search.
PIDs to search for.
Invert the PID search.
A comma seperated list of RSS values to search for.
Invert the RSS search.
Show swapped out procs.
Invert the swapped out search.
Show the the ncps process as well.
A comma seperated list of states to search for.
Invert the state search.
Print some general states about CPU usage and memory usage.
A comma seperated value of time, in seconds, to search for.
Invert the time search.
A comma seperated list of UIDs or usernames.
Invert the UID/username search.
A comma seperated list of VSZs to search for.
Invert the VSZ search.
A string search for wait channels.
Invert the wait channel search.
Show zombies procs.
For the various switches above that can take numeric values, the equalities below can be used, by directly prepending them to the number.
< <= > >= !
The enviromental variables below may be set to set the default for the flag in question.
Unless set to defined ands set to 1, these will default to 0.
Sets the default for the -J flag.
Sets the default for the -n flag.
Sets the default for the --cF flag.
Sets the default for the -F flag.
Sets the default for the --cf flag.
Sets the default for the -f flag.
Sets the default for the --tty flag.
Sets the default for the --self flag.
Sets the default for the --idle flag.
Don't colorize the output.
ncps -J -j 0 --ji
Display all processes with a jail ID other than zero.
ncps -c firefox --stats
Show all firefox processes and the stats for them.
ncps -F -f -cF -cf
Show all minor/major values for processes.
ncps -p '>1'
Show all processes using more than 1% of the CPU time.