我希望能够在PID=$(pgrep emacs)和FDs=(5u|6u|8u)上运行D1和filter。ss是否支持对其中任何一个(或两者)进行过滤?还是使用grep写作的最佳选择?
我目前正在使用lsof,但我更喜欢使用ss:
lsof -p $(pgrep emacs) | rg '\b(5|6|8)u\b'发布于 2021-11-05 19:52:40
有吗?
ss -tlnp | grep -w emacs | grep -E 'fd=(5|6|8)\)'为你工作?
https://unix.stackexchange.com/questions/676375
复制相似问题