Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道我如何使用 php 从 /dev/sda2 上的随机 inode 编号中获取 100 个随机文件?
按inode编号随机文件,这可能吗?
例如 56、1093、321、1231、4231、512... 这些数字是随机指向文件位置的 inode 编号。并使用 php 获取它们
不,这是不可能的。您只能通过文件的路径而不是它们的 inode 号来查找文件。(并非所有文件系统都具有inode 编号。)