How can I close all opened Nautilus (explorer) windows from the terminal?
Closing all Nautilus windows from terminal
command line;kill;nautilus
nautilus -qor killall nautilusIf nautilus is in the middle of doing something you should use the first command as it allows nautilus to exit gracefully. The second command just terminates nautilus so if invoked in the middle of e.g. a copy/move operation you might end up with corrupted data.