Pages

Close application cleanly from command line

In Linux we can close any application from the terminal by using the commands



Both these commands will close the application, but not in a clean way ut it will kill them abruptly, for example if we are running firefox and we use



Firefox will be killed abruptly and when we next open it, firefox will ask us whethe we want to restore the previous session as it was not closed properly.

ON the ther hand if we want to close the application cleanly we can use the command



To kill fiefox cleanly all we will have to do is



Firefox will exit cleanly and not get killed in an abrupt manner.

wmctrl can be installed from the package manger in debian based systems using apt




No comments:

Post a Comment