Skip to content

Instantly share code, notes, and snippets.

@subhendu-de
Created October 26, 2020 07:51
Show Gist options
  • Save subhendu-de/4fa09bde8a57614750218b9fe2924a8d to your computer and use it in GitHub Desktop.
Save subhendu-de/4fa09bde8a57614750218b9fe2924a8d to your computer and use it in GitHub Desktop.
#!/bin/bash
# To show the list of available targets
systemctl list-units --type=target --all
# To check the default target of the linux vm
systemctl get-default
# To set the default target of the linux vm
sudo systemctl set-default graphical.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment