[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
$HOME's....

-pete

-- 
~~oO00Oo~~
Peter Wright
pete at nomadlogic.org
www.nomadlogic.org/~pete
310.869.9459




More information about the talk mailing list