#!/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}')