Back to course

9. Introducing the Command Line Interface (CLI)

Linux Basics: From Zero to CLI Hero

Leaving the GUI Comfort Zone

While the desktop is nice, true power and control in Linux come from the Command Line Interface (CLI), accessed via the Terminal.

Why the CLI?

  1. Speed: Faster than navigating deep menu structures.
  2. Efficiency: Easily manage remote servers or systems without a display.
  3. Power: Many administrative and automation tasks are only possible or practical via the CLI.
  4. Consistency: Commands are the same across different distributions and desktop environments.

How to Open the Terminal

In Ubuntu, you can:

  1. Click the 'Show Applications' button and search for 'Terminal'.
  2. Use the keyboard shortcut: Ctrl + Alt + T.

Your First Prompt

When the terminal opens, you will see the shell prompt, which typically looks like this:

bash username@hostname:~$

  • username: Your current user name.
  • hostname: The name of your virtual machine.
  • ~: The current directory (Tilde, indicating your home directory).
  • $: The prompt sign, indicating you are a normal user (not root).