I'm looking for a way to report all the command lines associated to all the processes in all Linux: CentOS: Ubuntu, Red Hat, Debian, Cent OS... And, in case of the best command for it has any limitation (I mean, truncating the command lines), I want to know at what point are they truncated
At this moment I'm using this command
ps -eo pid,ppid,comm,args > ps.txt
I read in many places about getconf PAGE_SIZE
, but it says 4096 and, in the txt file, I can see processes with command lines much longer than that.