My Linux machine has two users root and matthew, I keep the passwords written in a text file so that I know I'm not making a spelling mistake (maybe a security issue, but that's not related to my question).
I was logged in as matthew and I wanted to install nano, so I typed.
sudo apt-get...