It's two separate commands, or programs. You shall know that everything you type in the terminal is actually programs (and they're all located in the different directories, which $PATH specifies)
sudo is used to run a command as root. You'll have to be root in order to install new software. You could also choose to first become root, using
su, and then next run the command.
Now to
apt-get.
apt-get is the packaging system used in Debian-based systems (including the *ubuntu-family.) It's used for easier installation of software, which normally can be hard on Linux. You can give
apt-get, a lot of options, but I'll concentrate on one, the one for installation;
install.
Code:
$ sudo apt-get install software
We let
apt-get know, that we want to
install some new
software.
software shall be the name of what you will install. So you shall not write
software, but the name of the software you want to install. Let's say you want to install the popular FPS-game Sauerbraten. The only thing you've to do is:
Code:
$ sudo apt-get install sauerbraten
Now,
apt-get will handle the process, and you don't have to do anything. To remove it again, you'll need to replace the
install with
remove instead. You shall also note that you can't find all the software you want using
apt-get, but you can find a lot for sure. You can use
apt-cache to search for available packages. You don't have to be root to use
apt-cache, as you're not going to install anything.
Code:
$ apt-cache search sauerbraten
You'll now get a whole list of packages related to Sauerbraten. You can also use another keyword, like
game, for finding other games.
As you may noticed about
apt-get, there's a little problem. You've no control on precisely what to install, and where to install it. If you want or need this control, you'll need to install the software by the sourcecode. It's slightly more complicated, but the plus is; you'll get the control. Another user asked about the same thing some days ago, and you can find my response in the thread, which is located right here:
http://www.totalpenguin.com/forum/showthread.php?t=1149