Using a single sudo to run multiple && arguments
Here are a couple of ways to run multiple commands using a single sudo:
# 1.
sudo -s <<< 'apt update -y && apt upgrade -y'
# 2.
sudo sh -c 'apt update -y && apt upgrade -y'
Via commandlinefu.com.
Here are a couple of ways to run multiple commands using a single sudo:
# 1.
sudo -s <<< 'apt update -y && apt upgrade -y'
# 2.
sudo sh -c 'apt update -y && apt upgrade -y'
Via commandlinefu.com.
Leave a comment