Simply put, why is this? Wouldn't it make more sense that sudo echo whoami returns root too?
Cheers
me:~$ whoami
me
me:~$ sudo whoami
root
me:~$ sudo echo `whoami`
me
Simply put, why is this? Wouldn't it make more sense that sudo echo whoami returns root too?
Cheers
me:~$ whoami
me
me:~$ sudo whoami
root
me:~$ sudo echo `whoami`
me