[Techtalk] sudo multiple commands at once without shell script
chris at gn.apc.org
Mon Oct 27 09:01:26 UTC 2008
You can do:
> sudo -i
... which will switch you to root and allow you to enter a series of
commands. Type 'exit' when you want to go back to being the regular user.
At 01:11 26/10/2008, Kelly Jones wrote:
>How do I run multiple sudo commands at once? This fails because the
>semicolon ends the whole sudo command:
> > sudo whoami; whoami
>This confuses tcsh:
>monica:~> sudo ( whoami ; whoami )
>Badly placed ()'s.
>I could obviously write a shell script or something or do:
> > sudo whoami; sudo whoami
>but is there a better way?
>We're just a Bunch Of Regular Guys, a collective group that's trying
>to understand and assimilate technology. We feel that resistance to
>new ideas and technology is unwise and ultimately futile.
>Techtalk mailing list
>Techtalk at linuxchix.org
"Our supper is plain, but we are very wonderful."
More information about the Techtalk