I am a new Linux user. How do I run two commands from a bash shell? I need to run apt-get update and apt-get -y upgrade without typing sudo command two times from a command line on Ubuntu Linux AWS cloud server. How can I two commands in sudo 'command1 && command2'?
This post first appeared on NixCraft — Linux Tips, Hacks, Tutorials, And Ide, please read the originial post: here