Process List in Shell
Level 252 keystrokes
Prints the PIDs of running node processes by filtering ps aux and extracting the second column (pgrep -f node does the same in one step).
Shell code
# ps aux lists every process; grep node keeps lines containing node# grep -v grep drops the grep command itself; awk prints column 2, the PID1ps aux | grep node | grep -v grep | awk '{print $2}'Output
12345 12678 13001
Practice typing this code. Results are not recorded in the rankings.
Symbols in this code
The symbols you type in this Shell code and how often they appear.
|× 3'× 2-× 1{× 1}× 1$× 1