![]() ![]() As per the below output the httpd process has been running since Aug 05. The above commands doesn’t show you the exact start date of the process and if you want to know those information then you can use the following command. If you would like to know for how many days the process has been running then use the following format. Use the ps command with etime option to get detailed elapsed time. To do so, you need to find the PID of a process, we can easily identify it by using pidof command. etimes: elapsed time since the process was started, in seconds.etime: elapsed time since the process was started, in the form of hh:]mm:ss.It provides a snapshot of the current processes along with detailed information like username, user id, cpu usage, memory usage, process start date and time command name etc. Ps stands for processes status, it display the information about the active/running processes on the system. So, don’t get confused between top and ps commands. No, It shows you the total CPU time the task has used since it started. Make a note: You may think the same details can be found on top command output. There are multiple options are available in ps command to check this.Įach options comes with different output, which can be used for different purpose. It shows, the given process uptime in the form of hh:]mm:ss, in seconds, and exact start date and time. ![]() We can easily check with the help of “ps” command. If you want to figure out how long a process has been running in Linux for some reason. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |