[nycbug-talk] fun one liners

Pete Wright pete at nomadlogic.org
Thu Jun 8 11:38:27 EDT 2006

hey all,
so i've been following a thread on the freebsd-stable@ list where a user
was having problems finding which files are open by a given process.
well...this lead to a lengthy discussion where everyone seemed to reply
/usr/port/sysutils/lsof ;)

although one guy posted this:
% fstat | grep 'httpd.*/var ' | awk '{print $6}' | xargs -n 1 sudo find \
-x /var -inum | sort -u

now that's a fun oneliner i've been missing for a while, which leads to
think: what other good oneliners do peep's on talk@ have lurking in their


Peter Wright
pete at nomadlogic.org

More information about the talk mailing list