# all process > ps -ef UID PID PPID C STIME TTY TIME CMD > ps -aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND ## PID: column 9-15 ## get speacial process PID > ps -ef | grep CMD-NAME | grep -v grep | cut -c 9-15 > ps -aux | grep CMD-NAME | grep -v grep | cut -c 9-15 ## ignore grep --color=auto, ## If the pattern had been written without the square brackets, it would have matched not only the ps output line for cron, but also the ps output line for grep. ## https://www.gnu.org/software/grep/manual/grep.html > ps -ef | grep [i]nit