I want to exclude grep from ps and other command line results. I run
ps aux | grep firefox
Apart from firefox I will always see grep
too:
tomboi 269078 9.5 1.2 3276832 399220 ? Sl 12:49 1:40 /usr/lib/firefox/firefox tomboi 269139 0.2 0.4 2501820 161032 ? Sl 12:49 0:02 /usr/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 1 -prefMapSize 248604 -parentBuildID 20210504152106 -appdir /usr/lib/firefox/browser 269078 true tab tomboi 269188 1.6 0.6 34044296 201604 ? Sl 12:49 0:17 /usr/lib/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 5573 -prefMapSize 248604 -parentBuildID 20210504152106 -appdir /usr/lib/firefox/browser 269078 true tab tomboi 269281 2.7 1.1 2994448 377868 ? Sl 12:49 0:29 /usr/lib/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 6266 -prefMapSize 248604 -parentBuildID 20210504152106 -appdir /usr/lib/firefox/browser 269078 true tab tomboi 271513 0.0 0.0 9032 2680 pts/0 S+ 13:07 0:00 grep --color=auto firefox
So how can I ignore grep process ID (PID and PS) in Linux?