IntroToLinux

2. The Shell: Your Command Interface


ðŸŽŊ What Does the Shell Do?

💎 Communication Interface with kernel, file system, and processes
â–ķïļ Program Execution Starts and manages programs
📝 Scripting Allows automation through scripts
⭐ Auto-completion Completes commands and file names (Tab key)
📜 History Remembers and allows repetition of previous commands
⚡ Aliases Create shortcuts for complex commands

Shell Name Description
bash Bourne Again SHell 🐧 Most common on Linux
zsh Z Shell âœĻ Feature-rich, default on macOS
dash Debian Almquist Shell ðŸŠķ Lightweight
ksh Korn Shell 🏛ïļ Unix heritage
sh Bourne Shell ðŸ‘ī Original Unix shell

ðŸ–Ĩïļ Your First Terminal

![Terminal Milan](/IntroToLinux/images/terminal-milan.png)

🔍 Understanding the Prompt

When you start a terminal, you see a prompt that typically shows:

┌─────────────────────────────────────────┐
│ username@hostname:~/current/directory$  │
│    ↑        ↑          ↑            ↑   │
│    │        │          │            │   │
│  User    Computer   Location    Prompt  │
└─────────────────────────────────────────┘

Prompt Characters:


Next: → User Types And Login
Previous: ← Understanding The Console Tty Origins
Lesson Home: ↑ Lesson 2: The Shell
Course Home: ⌂ Introduction to Linux