πΉ 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, andipare 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 + F1toF8 -
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 Verticallyfor multiple terminals in one window.