Created
November 21, 2019 20:55
-
-
Save jessuppi/170863da79df70a97395c9bc0de974db to your computer and use it in GitHub Desktop.
Useful Bash Script Functions (Command Aliases)
This file contains 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
## critical functions (aliases) for this script to function ## | |
apt () { command DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' /usr/bin/apt -q --yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" "$@"; } | |
wget () { command wget --no-check-certificate --no-cache --no-cookies --tries=3 --timeout=15 "$@"; } | |
cp () { command cp -R -f -d --no-preserve=mode,ownership "$@"; } | |
rm () { command rm -R -f "$@"; } | |
mkdir () { command mkdir -p "$@"; } | |
unzip () { command unzip -o "$@"; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reserve first comment