I remember using a input a while back that enables me to have total access within the cli while the window was opened
It as already mentioned, but to refresh your memory
Code:
sudo -i
Or alternatively
Code:
sudo su -