nerdexam
EC-Council

312-49 · Question #54

Which of the following commands shows you the names of all open shared files on a server and number of file locks on each file?

The correct answer is B. Net file. The 'net file' command (run on a Windows server) displays all currently open shared files, including the file ID, the full path, the username of who has it open, and the number of locks on that file. It is primarily used by administrators to monitor file-sharing activity and…

Submitted by luis.pe· Apr 18, 2026Network Forensics

Question

Which of the following commands shows you the names of all open shared files on a server and number of file locks on each file?

Options

  • ANet sessions
  • BNet file
  • CNetconfig
  • DNet share

How the community answered

(24 responses)
  • B
    96% (23)
  • C
    4% (1)

Explanation

The 'net file' command (run on a Windows server) displays all currently open shared files, including the file ID, the full path, the username of who has it open, and the number of locks on that file. It is primarily used by administrators to monitor file-sharing activity and, if needed, forcibly close open files using 'net file [ID] /close'. The other commands serve different purposes: 'net sessions' lists active client sessions, 'net share' manages shared resources, and 'netconfig' displays or modifies workstation/server configuration.

Topics

#net commands#file monitoring#server security#Windows CLI

Community Discussion

No community discussion yet for this question.

Full 312-49 Practice