User Tools

Site Tools


bash:aliases:privileged_access_specific_aliases

BASH - Aliases - Privileged access specific aliases

# If user is not root, pass all commands via sudo.
if [ $UID -ne 0 ]; then
  alias reboot='sudo reboot'
  alias update='sudo apt upgrade'
fi
bash/aliases/privileged_access_specific_aliases.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki