2012年9月26日
摘要: 转自:lsof命令:查看Liunx进程所打开的文件命令lsof命令是什么? 可以列出被进程所打开的文件的信息。被打开的文件可以是 1.普通的文件,2.目录 3.网络文件系统的文件,4.字符设备文件 5.(函数)共享库 6.管道,命名管道 7.符号链接 8.底层的socket字流,网络socket,unix域名socket 9.在linux里面,大部分的东西都是被当做文件的…..还有其他很多 怎样使用lsof 这里主要用案例的形式来介绍lsof 命令的使用 1.列出所有打开的文件: lsof 备注: 如果不加任何参数,就会打开所有被打开的文件,建议加上一下参数来具体定位 2. 查看谁正在使用某. 阅读全文
posted @ 2012-09-26 10:24 风在竹林 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 转自:/bin/bash: bad interpreter: Text file busy Error and SolutionQ. I'm getting an error as follows while trying to run a shell script over remote ssh session:./myscript.sh /bin/bash: bad interpreter: Text file busyHow do I fix this error message and run the script? A. This error means some other 阅读全文
posted @ 2012-09-26 09:34 风在竹林 阅读(2074) 评论(0) 推荐(1) 编辑