If I am a normal user and I type
history
I get a set of commands typed by me in the terminal.
Now I make myself the sudo su (su stands for super-user here and not substitute user)
sudo su
I am typing again the history from the same terminal
history
I get a different set of commands which I had typed early.
I am working in a personal workstation.No one else handles the workstation. There are no users enrolled in the workstation other than me. Even if I obtain su (super-user) privileges, i am going to be using with those privileges also.
Hence I would like to obtain a consolidated system-wide same history irrespective of superuser or normal user.
How to achieve this?
whoami
as your user, and then compare after yousudo su
... (I think of sudo as super-user-do, however su can also mean switch-user~)su
means, according toman su
,substitute user
.