ps -ef|grep java|awk '{print $2}'|xargs ps -o pid,etime,command -p
yukardaki satır sistemdeki javaların kaç gündür çalıştığını gösterir. örnek çıktı
PID ELAPSED COMMAND
16149 19-04:27:43 uzun komut
24767 12-04:55:26 komut
bold olanlar gün adedi sağdakide saat ve dakika ilk satırın anlamı: 19 gün 4 saat 27 dakikadır çalışıyor demek.
eğer javadan başka birşeyin kaç gündür çalıştığını görmek istiyorsanız yapmanız gereken aşağıdaki satırdaki bold bölgeyi taradığınız işlem adına çevirmek
ps -ef|grep java|awk '{print $2}'|xargs ps -o pid,etime,command -p
örnek kaç gündür makine açık
ps -ef|grep init|awk '{print $2}'|xargs ps -o pid,etime,command -p
Subscribe to:
Post Comments (Atom)
-
After iphone 16 I wanted to test an android and looks like sony xperia 10 VI is nice, which is 6.1 inches, but it was narrow and longer than...
-
I took the first jab in August 15 around 10:30 in the morning. no pain or nausea or dry mouth, I have been intermittent fasting since 2017 ...
-
I haven't eaten around 67 hours and I am feeling pretty good, like I said after 48 hours I started another 48 hours of fast and come thi...
No comments:
Post a Comment