Mac – How to close files through terminal

macterminal

My computer is Mac. I want to know how to close files like pdfs, images, applications through terminal. Sometimes, I open so many pdfs images and applications, I want to use terminal to close them. Thanks

Best Answer

You can close documents through terminal by killing the process displaying it. Use the ps command to find the process, then use the kill command to terminate it.

Related Question