pres ps aux zjistime PID pozadovaneho procesu
a vypisem
ls -l /proc/PID/fd ziskame vsechny deskriptory procesu
that’s it :)