In the Bash shell, to obtain the value of an environment variable we use the dollar (ie $) character. echo $PATH A similar technique can be used in a pipeline, that has multiple commands. # output from pgrep is passed back to the ps command
ps -o pid,euser $(pgrep -u root…