I'm trying to install a game called Teeworlds. I plan on installing it inside of /opt since it is stand-alone and from what I've read this is the right place for it. However, I'm having trouble doing this.
I type in the following command in the terminal:
tar xvzf ~/teeworlds.tar.gz -C /opt
But it gives me errors since I don't have enough permissions. So I try doing this with sudo then it works but then I don't have enough permission to access the teeworlds folder because it is now owned by root.
I understand that I can do chown and all that stuff but is it really this much trouble to get something like this to work or am I just doing something wrong?