echo -n 'username:password' | openssl base64
ls -LRX1 2>/dev/null | wc -l
set -euxo pipefail
-e: exit immediately if command failes -u: handles unset variables as errors -x: Prints the command before execution, nice for debugging -o pipefail: This particular option sets the exit code of a pipeline to that of the rightmost command to exit with a non-zero status, or zero if all commands of the pipeline exit successfully.
echo -n 'admin:admin123' | openssl base64
nohup <COMMAND> &>/dev/null &
find <PATH> -type f -print -exec chmod 600 {} \;
find <PATH> -type f -perm 777 -print -exec chmod 600 {} \;
/usr/bin/rsync -az --delete --exclude "**/workspace" -e ssh root@<HOSTNAME>:<PATH> <PATH-1> >>/var/log/rsync.log.0 2>&1
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'
alias ls='ls --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias gcm='git checkout master'
alias gfap='git fetch --all --prune'
alias gpf='git push -f'
alias gpoh='git push origin HEAD'
alias gproh='git pull --rebase origin HEAD'
alias gprom='git pull --rebase origin master'
alias grep='grep --color=auto'