Terminals, Consoles, Shells and Commands – Notes

πŸ”Ή Introduction

  • Beginners often hear terms like command, console, and terminal.

  • These might seem intimidating at first, but they’re foundational to using Linux effectively.


πŸ”Ή Why Command Line in Linux?

  • Linux is command-line oriented, though GUIs exist.

  • Power users and sysadmins prefer the terminal for:

    • Efficiency

    • Flexibility

    • Control


πŸ”Ή What is a Terminal?

  • A Terminal Emulator is a program that opens a window to let you type commands.

  • Common terminal emulators:

    • gnome-terminal (default on Ubuntu/CentOS)

    • konsole, xterm, guake, terminator

πŸ“Œ How to Open:

  • GUI: Search β€œterminal” in applications.

  • Right-click on desktop β†’ Open in Terminal.

  • Shortcut: Ctrl + Alt + T

  • Can open multiple tabs or windows.


πŸ”Ή What is a Shell?

  • A Shell is a program that interprets commands.

  • Sends valid commands to the kernel for execution.

  • Called the command interpreter.

πŸ“Œ When it Starts:

  • Automatically when a terminal is opened or user logs in via console.

πŸ“Œ Features:

  • Verifies syntax before execution.

  • Waits for and executes commands.


πŸ”Ή Linux is Case-Sensitive

  • File names and commands must match case.

  • Example: Ip, IP, and ip are all different.


πŸ”Ή Common Shells

  • Most popular: Bash

    • Default on: Ubuntu, Debian, CentOS, MacOS, WSL
  • Others:

    • Bourne Shell (sh)

    • C Shell (csh)

    • Korn Shell (ksh)

    • Z Shell (zsh)


πŸ”Ή What is a Console?

  • A console is similar to a terminal but used in text-only environments.

  • No GUI required.

πŸ“Œ Accessing Virtual Consoles:

  • Use key combos: Ctrl + Alt + F1 to F8

  • One is usually used by the GUI.

⚠️ In VMs (like VirtualBox), host OS may intercept these key combos.


πŸ”Ή Key Distinctions

Term

Description

Terminal

GUI application to access the shell

Shell

Command interpreter program

Console

Text-only terminal interface (no GUI)

πŸ’‘ These terms are often used interchangeably in casual use.


πŸ”Ή Installing & Using Terminator

  • Terminator: Advanced terminal emulator with features like split views.

πŸ“Œ Install:

sudo apt update && sudo apt install terminator

⚠️ Watch for typos – install has two Ls.

Tips:

  • Add to dock for quick access.

  • Use a light theme for better visibility.

  • Right-click β†’ Split Horizontally / Split Vertically for multiple terminals in one window.

Updated on