Add user to sudoers file
Well, CentOS initially only has one user setup for sudo initially - that would be root. So you would essentially need to add yourself to the sudoers file before being able to use sudo as yourself. For that, you will need the root password, which you should have somewhere if you setup the server yourself. Otherwise, speak to whoever owns/administrates the server.
So open a terminal.
Type in the following:
You'll need to provide the root password when prompted.
Now, as root, type in the following:
This will open the sudoers file
Scroll down using the down arrow key, and find the line that looks like:
root ALL=(ALL) ALL
move the cursor to the line just underneath this, and press the 'I' key on your keyboard. At the bottom of the terminal window you should see "--INSERT--" appear.
Now press the Enter key on your keyboard to create a new line. In that new-line space, type the following:
Note that I've put 'admin' in here, as you said that your username is admin. If not, change the 'admin' word in this line to whatever your username is.
When done, press the 'Esc' key on your keyboard (the "--INSERT--"" line at the bottom of the terminal window should now disappear), and then type in the following:
And that should be about it. Now type in
exit
to return to your user session, and then attempt to use the previous posted commands.
Note that the change to the sudoers file will remain until it is edited again.