crash命令 —— files

简介: crash命令 —— files

参考: https://crash-utility.github.io/help_pages/files.html

用法:

  • 查看进程当前打开的文件的信息,被打开的文件的file,dentry以及inode
    files <pid>
    或者
    files <进程task_struct>
  • 根据dentry的地址查看它对应的inode、超级块、文件类型以及路径
    files -d <dentry的地址>
  • 根据inode的地址查看这个inode下面的所有页缓存
    files -p <inode的地址>
  • 查看进程打开的文件对应的fd、inode以及inode的i_mapping成员、pagecache中的页面数、文件类型和路径
    files -c
  • 在文件打开的文件信息中搜索指定的内容,比如文件名,inode地址,地址空间、file地址等等
在指定的进程中搜索: files -R hello
在所有进程中搜索:foreach files -R hello
相关文章
|
17天前
crash命令 —— sym
crash命令 —— sym
|
17天前
|
分布式计算 关系型数据库 Ruby
crash命令 —— rd
crash命令 —— rd
|
17天前
|
Linux
crash命令 —— runq
crash命令 —— runq
|
17天前
crash命令 —— list
crash命令 —— list
|
17天前
crash命令 —— log
crash命令 —— log
|
16天前
crash命令 —— waitq
crash命令 —— waitq
|
17天前
crash命令 —— kmem
crash命令 —— kmem
|
17天前
crash命令 —— ptov
crash命令 —— ptov
|
17天前
crash命令 —— ptob/btop
crash命令 —— ptob/btop