Usually when running application in graphical environment, when I want to close it I click
X in the top left corner of the window or go to
File > Close.
I would like to sometimes close these programs remotely over ssh from terminal using command line, now I use
kill command but I wonder it it does the same as exiting the application properly from itself.
man kill default signal appears to be 15) SIGTERM, is this signal going to tell the application I am trying to close to clean up, close open files, save stuff?
Is there a better way if I want to do it from terminal?