Best practices for using 'sudo su'

view story

http://askubuntu.com – I have been using the terminal for a while now and sometimes (actually, a lot of times) I use a command, like: cp /etc/test ~/testFolder/ and I get this error: cp: cannot open `/etc/test` for reading: Permission denied That's the moment I remember that I forgot the sudo command before it, so I press Up arrow and then CTRL+A to go to the beggining of the line and insert a sudo there: sudo cp /etc/test ~/testFolder/ There are even worse scenarios where you use vim to edit a file, you forget sudo command and don't see the warning when the program starts, you edit the entire file and in t (HowTos)