Linux 📄 copy If you want to logout from your Linux desktop session, but don't want to leave your terminal window. gnome-session-quit
Git Linux 📄 copy From time to time I clean up all the local branches that have assembled over time in a Git repository. git branch | grep -v "main" | xargs git branch -D
Linux 📄 copy Quick way to restart your Linux Desktop environment. Useful when trying out stuff that needs to run at startup. sudo service lightdm restart