Created
November 3, 2016 08:22
-
-
Save jpouellet/0f2f0e5edf1fafeddbe074b9fa657214 to your computer and use it in GitHub Desktop.
Shuts down all non-system Qubes VMs. *WARNING*: Does not ask before killing processes in them.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| qvm-ls --raw-data state name | grep '^Running|' | cut -d'|' -f2 | grep -vx '{.*}' | xargs -n1 qvm-shutdown -- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment