0
 $ sudo -s <<< 'apt update -y && apt upgrade -y'

Oct. 27, 2019, 7:02 p.m.secure-debian

Explanation

We can use a single sudo to run multiple apt comands && arguments