How does fs_usage differ from lsof?
Answer(s)
- - Any user can run fs_usage. Only root can run lsof.
- - fs_usage can show open network sockets and open files on disk. lsof only shows open fileson disk.
- - fs_usage can show files opened by system processes. lsof only shows files opened by userprocesses.
- - fs_usage shows file-open events in real-time until the command is exited. lsof shows asnapshot of open files at a specific time.
Correct Answer
- fs_usage shows file-open events in real-time until the command is exited. lsof shows asnapshot of open files at a specific time.