Skip to content

Instantly share code, notes, and snippets.

@josepsmartinez
Last active July 21, 2022 17:47
Show Gist options
  • Save josepsmartinez/994207b967d000d95dd899f6cbd0e9b8 to your computer and use it in GitHub Desktop.
Save josepsmartinez/994207b967d000d95dd899f6cbd0e9b8 to your computer and use it in GitHub Desktop.
Bash script to be put on a superuser priviliged binaries directory, like: /sbin or /usr/sbin (as in https://askubuntu.com/a/308048)
#!/bin/bash
apt update &&\
apt upgrade &&\
apt autoremove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment