tanelpoder / 0xtools

0x.Tools: X-Ray vision for Linux systems
https://0x.tools
GNU General Public License v2.0
1.22k stars 99 forks source link

cmdline #27

Open c-hernandez0 opened 2 years ago

c-hernandez0 commented 2 years ago

Hi Tanel, Is the cmdline option supposed to include the full command line of a process? It looks like I am getting the process name (or path to it) instead of /proc/< pid >/cmdline

RHEL 7.9

tanelpoder commented 1 year ago

Right now it only includes the 1st \0-delimited string of the full cmdline. Linux /proc/PID/cmdline is a list of \0-terminated strings, so conveniently the command name is just the 1st string to extract out of it.

I could add either a column cmdline2 or cmdargs that would replace the \0s with spaces and printed out the whole thing (it could get very wide though).

Comments appreciated!