When you pass lsof the name of a file, such as in lsof /file/I/deleted, it first uses the stat() system call to get information about the file, which is, unfortunately, gone.
当您向 lsof 传递文件名时,比如在 lsof /file/I/deleted 中,它首先使用 stat() 系统调用获得有关该文件的信息,不幸的是,这个文件已经被删除。
Much better to stick with a two-level system of pass and fail, or (if you will insist on such elitism) one extra level of “pass with distinction” for the top quartile.
最好还是继续两级方案,即通过和不通过,或者(若坚持精英主义)再为顶尖者增加“优秀通过”这个额外的级别。
You might want to check the size of an output file to ensure it does not pass some limit, or check whether a file contains a certain message, or check system status using a command such as vmstat.
您可能希望检查输出文件的大小以确保没有超出限制,或者检查某个文件是否包含了特定的消息,或者使用 vmstat 这样的命令检查系统状态。
应用推荐