How Do You Close A File In System?

How do I close files in Windows 10?

.

How do you close a folder?

How do you close a file in CMD?

Can’t be deleted because the file is open in system?