I am trying to create some alias for executing the same command but with sudo credentials. In the ultimate case I want to be something like:
alias !!='sudo !!'
But when I source /.bashrc file this particular alias doesn't work for some reason.
I am trying to create some alias for executing the same command but with sudo credentials. In the ultimate case I want to be something like:
alias !!='sudo !!'
But when I source /.bashrc file this particular alias doesn't work for some reason.
aliases cannot have arguments, use a function:
function SU { sudo $*; }