
3 ways to check process start time in Linux - howtouselinux
Mar 26, 2023 · We can easily check the process start time in Linux using the ps command. Open the terminal and type ps -p pid -o lstart,start,etime,etimes. It will list the process start time in the command output.
How can I get the start time of a long-running Linux process?
Dec 7, 2024 · The ps command (at least the procps version used by many Linux distributions) has a number of format fields that relate to the process start time, including lstart which always gives the full date and time the process started:
Linux Find Out Last System Reboot Time and Date Command
Apr 30, 2006 · Learn how to find out Linux or UNIX-like systems last reboot date and time from a shell prompt using last and who commands.
Linux PS Command: Get the Process Start Time and Date
Jul 6, 2017 · How to find out the start time and date of a long-running processes in Linux using PS command.
Getting date and time of system startup in Linux - Super User
Mar 14, 2011 · The "btime" line gives the time at which the system booted, in seconds since the Unix epoch.
Get the Start Time of a Long-Running Linux Process
Mar 18, 2024 · In this article, we learned how to get start time information of a long-running Linux process in several formats.
Linux - How do I see when a process started? - Server Fault
If you want only the start time, you can select the field and suppress the header by doing this: ps -p YOURPID -o lstart= the output will look like this: Mon Dec 14 17:17:16 2009 which is ctime(3) format and you can parse it to split out the relevant parts.
When was a process started - Unix & Linux Stack Exchange
The start time of the process is located at /proc/PID/stat column 22. It is given in jiffies after system boot. To convert it to seconds you have to divide it by sysconf(_SC_CLK_TCK) which is 100 for most systems (but not all!). To get the time of system boot you determine the current uptime in seconds which is the first value of /proc/uptime.
How to Check Running Process Time in Linux - Tecmint
Mar 8, 2024 · To find out how long a process (program or application) has been running, open a terminal and type the following command: This command lists the process ID (PID), command name, and elapsed time (etime) for all processes.
Find Out How Long Does it Take to Boot Your Linux System
Aug 6, 2019 · One of those utilities is systemd-analyze. The systemd-analyze command gives you a detail of how many services ran at the last start up and how long they took. If you run the following command in the terminal: You’ll get the total boot time along with the time taken by firmware, boot loader, kernel and the userspace: