Get file details by inode

前端 未结 3 851
攒了一身酷
攒了一身酷 2021-01-14 01:07

I need in a bash script to get details about a file when I know the inode.The system is Linux.

3条回答
  •  无人共我
    2021-01-14 01:19

    You can use find with a combination of -inum and -xdev. This gives you the file's names (it can have more than one name), and from them you can find whatever information you want.

提交回复
热议问题