How can I see when a process started, assuming I know the pid. (On Linux)
Linux Process Management – How to Check When a Process Started
linuxprocess
Related Topic
- Linux – Check Environment Variables of a Running Process on Unix
- Windows – How to free up a port being held open by dead process
- How to Identify Processes Generating UDP Traffic on Linux
- Linux – How to Get PID of Just Started Process
- Linux Processes – How to Know Where and How a Process Was Started
- Linux – How to start a process in suspended state under Linux
- Linux Process Management – Keeping a Linux Process Running After Logout
Best Answer
If you want only the start time, you can select the field and suppress the header by doing this:
the output will look like this:
which is
ctime(3)
format and you can parse it to split out the relevant parts.Other start fields such as
start
,stime
,bsdstart
andstart_time
age the time (after 24 hours only the date is shown, for example).You can, however, use them directly for recently started processes without further parsing:
which would output something like: