pipeview of PID

master
zeus 2021-08-23 18:28:18 +02:00
parent 64a269a16a
commit 827fe99782
1 changed files with 5 additions and 0 deletions

5
bash/pv_of_pid.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
# get interactive pipeview of all files a PID has opened. Works also with forked PIDs (takes last pid, of pidof, which is usually the oldest pid)
pv -d $(pidof firefox |awk '{print $NF;exit}')