Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to run multiple commands in sudo under Linux or Unix

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

Share the post

How to run multiple commands in sudo under Linux or Unix

×

Subscribe to Nixcraft — Linux Tips, Hacks, Tutorials, And Ide

Get updates delivered right to your inbox!

Thank you for your subscription

×