Is it possible to get the start time of an old running process? It seems that ps will report the date (not the time) if it wasn’t started today, and only the year if it wasn’t started this year. Is the precision lost forever for old processes?
Is it possible to get the start time of an old running process? It
Share
You can specify a formatter and use
lstart, like this command:The above command will output all processes, with formatters to get PID, command run, and date+time started.
Example (from Debian/Jessie command line)
You can read
ps‘s manpage or check Opengroup’s page for the other formatters.