linux lsof
来源:互联网 发布:linux fqdn 编辑:程序博客网 时间:2024/06/05 00:59
lsof -c string
lsof -u username
lsof -g gid 显示归属gid的进程情况
lsof +d /DIR/ 显示目录下被进程打开的文件
lsof +D /DIR/ 同上,但是会搜索目录下的所有目录,时间相对较长
lsof -d FD 显示指定文件描述符的进程
lsof -n 不将IP转换为hostname,缺省是不加上-n参数
lsof -i 用以显示符合条件的进程情况
lsof -i[46] [protocol][@hostname|hostaddr][:service|port]
例如: 查看22端口现在运行的情况 # lsof -i :22
查看所属root用户进程所打开的文件类型为txt的文件: # lsof -a -u root -d txt
lsof使用实例 一、查找谁在使用文件系统在卸载文件系统时,如果该文件系统中有任何打开的文件,操作通常将会失败。那么通过lsof可以找出那些进程在使用当前要卸载的文件系统,如下: # lsof /GTES11/
使用lsof来查看当前是否有进程打开/var/logmessages文件,如下: # lsof |grep /var/log/messages
- linux lsof
- linux lsof
- lsof Linux
- linux lsof
- linux lsof
- linux lsof
- Linux lsof
- linux lsof
- linux lsof
- linux lsof
- linux lsof详解
- linux lsof详解
- lsof命令用法 (linux)
- linux lsof详解
- linux lsof详解
- linux lsof命令解析
- Linux lsof命令详解
- Linux命令lsof
- .NET下如何完成xml文档的读写操作
- POJ 2253 Frogger Floyd
- ubuntu添加开机启动
- AS3 模块 优化
- 程序调试
- linux lsof
- awk内置字符串函数详解
- ubuntu 编译 Android 出现的若干错误及解决方法
- 排序算法汇总
- 以太网基础知识:TCP与UDP的区别
- u-boot 连接脚本文件u-boot.lds的分析
- 在android media framework中添加播放器
- Hot Spot JVM5中的GC调优
- Android修改system只读权限:remount