Multiple choice technology operating systems

How to list open files in UNIX

  1. Using lsof command

  2. Using strings command

  3. using touch command

  4. Using ls command

Reveal answer Fill a bubble to check yourself
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.