[root@host-136 ~]# find /var/log -type f -name "*.log" -size +10G -delete 10. 根据文件权限/所有权进行匹配 找出指定目录下权限不是644的txt文件 [root@host-136 ~]# find / -type f -name "*.txt" ! -perm 644 /usr/lib/firmware/ivtv-firmware-license-end-user.txt /usr/lib/firmwar...
.lsof命令用于查看你进程开打的文件,打开文件的进程,进程打开的端口(TCP、UDP)。找回/恢复删除的文件。是十分方便的系统监视工具,因为lsof命令需要访问核心内存和各种文件,所以需要root用户执行。 在linux环境下,任何事物都以文件的形式存在,通过文件不仅仅可以访问常规数据,还可以访问网络连接和硬件。所以如传输控制协议...
Read-only file system 的解决办法 Cannot find a C compiler, aborting Linux模拟硬盘资源耗尽故障 linux系统中通过控制台给其他用户发送消息 linux之sed用法 Nginx的gzip配置参数说明 SError: [Errno 2] No such file or directory: ‘/dev/urandom’ Access数据库优化 Linux系统创建iso镜像文件 查看系统glibc版本...
Using glance, we can find out even more. Using the text mode command glance, first select the process (using the command key s and entering the pid – 2198). Then a view of the current activity by the process is given. In this case, we can see the total size is 51.6Mb (VSS) and...
find ./ -name *aaa* 1. 2. whereis 查找 whereis aaa 1. 列出文件(目录) ls 显示当前目录下的文件 ls 1. 显示当前目录下的文件部分属性信息 ls -l 1. 参考资料:Linux ls -l 命令图解linux ls -l 命令详解(权限,大小,时间等) 显示当前目录下的所有文件,包含隐藏文件 ...
A specific file or all the files in a file system may be selected by path. 可用选项: $ lsof -h 详细说明: $ man lsof 2. 输出列 Lsof每次运行时动态调整输出列的大小,保证每列的最小大小。它还保证每列与其前一列至少隔开一个空格。
findmore informationinone of the files under /proc/net/. For file descriptors that have no corresponding inode (e.g., file descriptors produced by bpf(2), epoll_create(2), eventfd(2), inotify_init(2), perf_event_open(2), signalfd(2), timerfd_create(2), and ...
When you need to unmount a file system with the umount command, you may find the operation blocked by a process that has a file open on the file systems. Lsof may be able to help you find the process. In response to: $ lsof
Find the processes that have a given file open: lsof path/to/file Find the process that opened a local internet port: lsof -i :port Only output the process ID (PID): lsof -t path/to/file List files opened by the given user: lsof -u username List files opened by the given command...
1. Find the processes that have a given file open: # lsof path/to/file 2. Find the process that opened a local internet port: # lsof -i :port 3. Only output the process ID (PID): # lsof -t path/to/file 4. List files opened by the given user: ...