Command Line

This section will be an introduction to harnessing the power of the command line. It assumes you are using Ubuntu Linux, more specifically the desktop live CD. It should look pretty similar in any other Linux that is using the BASH shell (almost all do).

Note: in this section, the red text shows what you type in, and anything else represents what you see on the screen, though the colors might not be the same. Here is an example listing files (including hidden files):

ubuntu@ubuntu:~$ ls -A .bash_logout .esd_auth .gnome2_private .metacity .thumbnails .bash_profile .gconf .gstreamer-0.10 .nautilus .Trash .bashrc .gconfd .gtkrc-1.2-gnome2 .openoffice.org2 .Xauthority Desktop .gnome2 .ICEauthority .recently-used .xsession-errors

In the above example, the part before the dollar sign is the command prompt, where the shell is telling you it is ready to accept your commands. We type in ls -A, which means to list filenames in this directory (folder), and show all files except for the . and .. which mean this current directory and the parent directory, respectively.

The shell would then list those filenames, usually showing directories in blue. It would actually look like this on the Ubuntu screen:

Opening a terminal

In Ubuntu, click on the Applications menu on the panel at the top of the screen, then choose Accessories and Terminal. We can abbreviate that as Applications -> Accessories -> Terminal.

A bit about Linux for newcomers

A few more comments before we go on:

  • Notice that Linux is case sensitive. That means that the command ls -A is different from ls -a, and we could have a directory named Desktop and another one named desktop.
  • In computers, directory and folder are identical.

This page is
made possible by:

This page rendered by CodeIgniter in 0.0433 seconds.