A PID is an acronym for process identification number on a Linux or Unix-like operating system. A PID is automatically assigned to each process when it is created. A process is nothing but running instance of a program and each process has a unique PID on a Unix-like system.
# find the PID (ProcessID)
# you can use htop
sudo bash;
apt-get update;
apt-get install htop;
htop; # use cursor buttons to scroll up and down
alternatively:
ps aux | grep -i boinc
boinc 1143 0.0 0.2 33064 9396 ? SNl 12:45 0:11 /usr/bin/boinc --check_all_logins --redirectio --dir /var/lib/boinc-client
boinc 2061 78.1 0.0 3388 3040 ? RNl 17:07 35:38 ../../projects/milkyway.cs.rpi.edu_milkyway/milkyway_1.40_i686-pc-linux-gnu
altneratively:
pidof boinc
1143
manpage of pidof: pidof.man.txt
alternatively:
ps -C "boinc" -o pid=
1143
now how to find out when the process was started/since when it was running: (actually i wanted to find out if boinc-client starts in the background before login… it does)
ls -ld /proc/1143
dr-xr-xr-x 9 boinc boinc 0 Jan 12 12:45 /proc/1143
so it was started Jan 12 12:45
hope this helps.
creditz to: https://askubuntu.com/questions/180336/how-to-find-the-process-id-pid-of-a-running-terminal-program
https://www.cyberciti.biz/faq/howto-display-process-pid-under-linux-unix/
https://www.cyberciti.biz/faq/howto-display-process-pid-under-linux-unix/
https://javarevisited.blogspot.com/2013/04/how-to-find-runtime-of-process-in-unix-linux.html
liked this article?
- only together we can create a truly free world
- plz support dwaves to keep it up & running!
- (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
- really really hate advertisement
- contribute: whenever a solution was found, blog about it for others to find!
- talk about, recommend & link to this blog and articles
- thanks to all who contribute!