3 ms·
You can get open files and ports even without sudo for non-root processes by just hitting cmd+i. Maybe running with sudo might allow you to sample or get files
by krackers 3y ago
You can get open files and ports even without sudo for non-root processes by just hitting cmd+i. Maybe running with sudo might allow you to sample or get files for processes owned by root (presumably the info is same as what you'd get with lsof though). (And by ports it seems to mean network ports. If you want mach ports, you can use lsmp).