# Quick Reference Guide

This section provides quick-access reference material for working with Genie, including keyboard shortcuts, common terminal commands, and a glossary of terms used throughout the documentation.

***

## Keyboard Shortcuts

### Terminal

| Shortcut   | Action                              |
| ---------- | ----------------------------------- |
| `Ctrl + C` | Stop current process                |
| `Ctrl + D` | Exit terminal session               |
| `Ctrl + L` | Clear screen                        |
| `Ctrl + A` | Move cursor to start of line        |
| `Ctrl + E` | Move cursor to end of line          |
| `Ctrl + R` | Search command history              |
| `Ctrl + Z` | Suspend current process             |
| `Tab`      | Auto-complete file or command names |
| `↑ / ↓`    | Navigate command history            |

### File Editor

| Shortcut               | Action           |
| ---------------------- | ---------------- |
| `Cmd/Ctrl + S`         | Save file        |
| `Cmd/Ctrl + F`         | Find in file     |
| `Cmd/Ctrl + H`         | Find and replace |
| `Cmd/Ctrl + /`         | Toggle comment   |
| `Cmd/Ctrl + Z`         | Undo             |
| `Cmd/Ctrl + Shift + Z` | Redo             |

***

## Common Terminal Commands

### Navigation

```bash
pwd                    # Show current directory
ls                     # List files
ls -la                 # List all files with details
cd /path/to/dir        # Change directory
cd ..                  # Go up one level
cd ~                   # Go to home directory
```

### File Operations

```bash
touch file.txt         # Create empty file
mkdir folder           # Create directory
cp source dest         # Copy file
mv old new             # Move or rename
rm file.txt            # Delete file
rm -rf folder/         # Delete directory
cat file.txt           # Display file contents
```

### Search

```bash
grep "text" file       # Search in file
grep -r "text" .       # Search recursively
find . -name "*.js"    # Find files by name
```

### System

```bash
df -h                  # Disk space usage
free -m                # Memory usage
htop                   # Process monitor
whoami                 # Current user
uname -a               # System information
```

### Package Management

```bash
sudo apt update        # Update package lists
sudo apt install pkg   # Install package
sudo apt remove pkg    # Remove package
```

### Git

```bash
git clone url          # Clone repository
git status             # Check status
git add .              # Stage changes
git commit -m "msg"    # Commit
git push               # Push to remote
git pull               # Pull from remote
```

***

## Glossary

**Server** — Your dedicated cloud machine running Ubuntu 22.04 LTS.

**Workspace** — Your primary working directory at `/home/ubuntu/workspace`.

**Terminal** — A browser-based command-line interface connected to your server.

**Gateway** — The secure WebSocket connection between your browser and server.

**Credits** — Virtual currency used for AI interactions. Each plan includes a daily allocation.

**Secrets** — Encrypted storage for sensitive data like API keys and passwords.

**Vibe Mode** — A simplified interface focused on speed and guided interaction.

**Pro Mode** — A full-featured interface with advanced controls and multiple terminal sessions.

**Channels** — External platform connections like Telegram and Discord.

**Gateway Device** — A local device connected to your Genie server for hybrid workflows.

**Passkey** — A modern authentication method using biometrics instead of passwords.

**Backup** — A snapshot of your workspace that can be restored if needed.

**Webhook** — An HTTP endpoint that receives notifications about server events.

**API Token** — A credential for programmatic access to Genie operations.
