如何按名称列出进程打开的常规文件
lsof_list_regular_files.sh
lsof -c minio | grep -E 'REG'该命令会列出名称中包含 “minio” 的进程所打开的所有常规文件。lsof 命令用于列出打开的文件,-c minio 选项用于筛选名称匹配 “minio” 的进程,而 grep -E 'REG' 则过滤输出,仅显示常规文件。
Check out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow