Oh hey, I should say or remind (I know I had this somewhere at BBF).
If you ever want to see the full argv of your processes, rather than have your console truncate it, redirect to a text file or filter through grep or something. Note that if you're compiling or something, the argv of each of those processes is going to be the full command with all the switches and object files, so keep that in mind (it will be a metric shit tonne of text with very long lines if not using something that wraps text)
You can process that as you see fit (e.g. grep for strings or simply view in editor)
In that very example of compiling, quite often, with these new build systems, the output of the build, the compile commands and all, are prettied up, only showing "compiling object.o" and warnings and stuff. If I want to see what it's doing, for example to make sure it's respecting environment variables etc. I can use ps aux with grep. For example, if I want to check my CFLAGS I could do:
(or some string I know will be in the argv of the process I'm looking for)
P.S. A note about "ps aux c"
That shows only the program name, not the argv of the process. That bites the weenie, because it's not necessarily the name of the program binary, or the name of a daemon, but the program or process's internal name.
Example: firefox is the wrapper, but its actual processes are "Web Content", "Utility Process", "WebExtensions", "Sock Process", "Privileged Cont". That's just one example of why I don't like that (I mean, I know those processes belong to Firefox)
I'd rather see it like this, thanks, you clever people you
Code: Select all
grogan 1270 2.0 0.4 11370528 320396 tty1 Sl 13:21 0:23 firefox
grogan 1360 0.0 0.0 247164 31852 tty1 Sl 13:21 0:00 /storage3/firefox/lib/firefox/firefox -contentproc -parentBuildID 20240324194629 -prefsLen 38628 -prefMapSize 243397 -appDir /storage3/firefox/lib/firefox/browser {47bb5f0d-79ce-4fda-8c26-b34510704dce} 1270 socket
grogan 1379 0.0 0.1 2477996 118384 tty1 Sl 13:21 0:00 /storage3/firefox/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 38769 -prefMapSize 243397 -jsInitLen 234952 -parentBuildID 20240324194629 -greomni /storage3/firefox/lib/firefox/omni.ja -appomni /storage3/firefox/lib/firefox/browser/omni.ja -appDir /storage3/firefox/lib/firefox/browser {8e215423-c14d-428d-a672-a357fb758267} 1270 tab
grogan 1431 0.0 0.1 19468768 128480 tty1 Sl 13:21 0:00 /storage3/firefox/lib/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 44085 -prefMapSize 243397 -jsInitLen 234952 -parentBuildID 20240324194629 -greomni /storage3/firefox/lib/firefox/omni.ja -appomni /storage3/firefox/lib/firefox/browser/omni.ja -appDir /storage3/firefox/lib/firefox/browser {69d5ff38-3654-4aa8-800f-26d0e72cf2e8} 1270 tab
grogan 1485 0.0 0.0 245892 30188 tty1 Sl 13:21 0:00 /storage3/firefox/lib/firefox/firefox -contentproc -parentBuildID 20240324194629 -sandboxingKind 0 -prefsLen 44085 -prefMapSize 243397 -appDir /storage3/firefox/lib/firefox/browser {60594b50-71b6-4e8a-9fbb-ed1e90b55d1a} 1270 utility
grogan 1499 0.7 0.2 2554292 157884 tty1 Sl 13:21 0:08 /storage3/firefox/lib/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 33152 -prefMapSize 243397 -jsInitLen 234952 -parentBuildID 20240324194629 -greomni /storage3/firefox/lib/firefox/omni.ja -appomni /storage3/firefox/lib/firefox/browser/omni.ja -appDir /storage3/firefox/lib/firefox/browser {685bd6ae-4c26-4b68-8382-26a8ac4adbc7} 1270 tab
grogan 1534 0.0 0.0 2431012 56488 tty1 Sl 13:21 0:00 /storage3/firefox/lib/firefox/firefox -contentproc -childID 4 -isForBrowser -prefsLen 33152 -prefMapSize 243397 -jsInitLen 234952 -parentBuildID 20240324194629 -greomni /storage3/firefox/lib/firefox/omni.ja -appomni /storage3/firefox/lib/firefox/browser/omni.ja -appDir /storage3/firefox/lib/firefox/browser {cc2bb812-f147-408d-8644-3cbbdd3bd814} 1270 tab