unix - killall
close all process
e.g.
killall java
killall firefox
for firefox : safe, because, when restart, this reopen all previously closed windows !
killall chrome
for chrome : safe, because, when restart, this reopen all previously closed windows !