fuser命令使用心得

简介: fuser命令可用于查看正使用指定file, file system, socket port的进程信息。使用-k参数可将这些进程杀掉,-i则在杀掉进程前给出提示例子:[root@bogon ~]# fuser -k -i 80/tcp80/tcp: 30922 30...

fuser命令可用于查看正使用指定file, file system, socket port的进程信息。使用-k参数可将这些进程杀掉,-i则在杀掉进程前给出提示
例子:

[root@bogon ~]# fuser -k -i 80/tcp
80/tcp:              30922 30923
Kill process 30922 ? (y/N) y
Kill process 30923 ? (y/N) y

其他参数如下:

    -a        display unused files too
    -c        mounted FS
    -f        silently ignored (for POSIX compatibility)
    -i        ask before killing (ignored without -k)
    -k        kill processes accessing the named file
    -l        list available signal names
    -m        show all processes using the named filesystems
    -n SPACE  search in this name space (file, udp, or tcp)
    -s        silent operation
    -SIGNAL   send this signal instead of SIGKILL
    -u        display user IDs
    -v        verbose output
    -V        display version information
    -4        search IPv4 sockets only
    -6        search IPv6 sockets only
    -         reset options
目录
相关文章
|
Linux Shell
在Linux中,umask 和 ulimit有什么区别?
在Linux中,umask 和 ulimit有什么区别?
|
存储 Web App开发 人工智能
『GitHub项目圈选18』推荐5款本周 超实用 的开源项目
『GitHub项目圈选18』推荐5款本周 超实用 的开源项目
1081 1
|
存储 安全 容灾
同步与备份
【7月更文挑战第1天】同步与备份
742 70
|
11月前
|
前端开发 安全 开发工具
CMS系统是什么?CMS用来做什么的?
CMS是网站开发工具,包括前端模版和后端后台。支持私有化部署,包含页面管理、会员管理、标签管理等。用户无需建站基础和专业知识,即可快速建设和管理网站。大型企业网站、新闻网站等多采用CMS。
662 8
|
存储 域名解析 网络协议
在Linux中,/usr和/etc目录的用途有什么?
在Linux中,/usr和/etc目录的用途有什么?
|
网络协议 Java Linux
|
SQL 关系型数据库 Serverless
阿里云关系型数据库RDS
阿里云关系型数据库RDS
427 49
|
JavaScript Java 测试技术
基于小程序的健身房私教预约系统+springboot+vue.js附带文章和源代码设计说明文档ppt
基于小程序的健身房私教预约系统+springboot+vue.js附带文章和源代码设计说明文档ppt
186 0
|
算法 Linux Shell
【Linux】systemv init和systemd的区别
【Linux】systemv init和systemd的区别
298 0
|
Ubuntu 固态存储 Linux
Ubuntu 20.04编译AOSP 并启动模拟器
Ubuntu 20.04编译AOSP 并启动模拟器
2727 0
Ubuntu 20.04编译AOSP 并启动模拟器

热门文章

最新文章