I want to make an alias for sudo i.e.
alias now="echo [password] | sudo -S"
but it doesn't seem to work...
I was thinking that something like the following would work
alias now="echo [password] | sudo -S ${command_line_parameter}"
but I don't know what "${command_line_parameter}" would be... Any ideas?
sudo
does not read the password fromSTDIN
. – waltinator May 26 '17 at 16:16I was half considering using f***ing as the alias XD
– James Yeoman May 27 '17 at 06:31