3 ms·
On Mac, there's also lsof. (Also on Linux? I always assumed it was just a standard Unix tool, but maybe not?) lsof -c [process name] lsof -p [pid]
by Wowfunhappy 6y ago
On Mac, there's also lsof. (Also on Linux? I always assumed it was just a standard Unix tool, but maybe not?)
lsof -c [process name]
lsof -p [pid]
- hnlmorg 6y agoIt is available for Linux however it's not always part of the base install of every distribution (but a worthwhile install none-the-less). Not taking anything away from lsof as I do use it myself but I do also think there is also merit in learning the /proc file system too because it helps illuminate some of the not-so-hidden magic behind Linux. Even if you then still find lsof or similar become your preferred utility.