How to list open files in UNIX
-
Using lsof command
-
Using strings command
-
using touch command
-
Using ls command
A
Correct answer
Explanation
The lsof (List Open Files) command displays information about files that are currently open by running processes. It shows the filename, process ID, user, and other details for each open file. This is an essential troubleshooting tool for situations like file in use errors or identifying which process is using a particular file.