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?
whoamias your user, and then compare after yousudo su... (I think of sudo as super-user-do, however su can also mean switch-user~) – guiverc May 12 '20 at 03:53sumeans, according toman su,substitute user. – mook765 May 12 '20 at 04:24sudo, and should you ever need to work as root for a while, do so in a separate terminal reserved just for this, with some obvious indication that it is root, like a red background etc. (The # or $ prompt is not enough). This sort of modal hygiene will help stop the odd major disaster when you forget you are root. – meuh May 12 '20 at 06:44