Skip to content

Appendix: Terminal Quick Reference

The Problem

You're in the terminal, and something isn't working. Maybe a command is stuck. Maybe you typed something wrong and want to start over. Maybe you're not sure which folder you're in.

This reference helps you recover from common situations and navigate with confidence.

The Key Idea

Core concept

The terminal remembers your history and helps you avoid retyping. A few keyboard shortcuts let you work faster and recover from mistakes.

Choosing a Terminal App

Your computer comes with a built-in terminal, but better options exist:

macOS:

  • Built-in Terminal — Works fine to start
  • iTerm2 — More features, split panes, better search
  • Ghostty — Fast, modern, GPU-accelerated

Windows:

Linux:

  • Most distributions include excellent terminals by default

When Things Go Wrong

These three shortcuts handle most "I'm stuck" situations:

ShortcutWhen to Use It
ctrl + cSomething is running and you want to stop it
ctrl + kClear everything from cursor to end of line
ctrl + lThe screen is cluttered and you want a fresh view
up arrowYou want to repeat or edit your last command

Editing Commands

Mistyped something? These shortcuts let you fix it without retyping:

ShortcutWhat It Does
ctrl + aJump to the beginning of the line
ctrl + eJump to the end of the line
ctrl + wDelete the last word you typed
ctrl + uClear everything you've typed

Finding Things

ShortcutWhat It Does
tabAuto-complete a filename (type first few letters, then press tab)
ctrl + rSearch your command history (start typing to find past commands)

Where Am I? What's Here?

When you're disoriented, these commands help:

CommandWhat It Tells You
pwdYour current location (which folder you're in)
lsWhat files and folders are here
ls -laSame, but with more detail (size, dates, hidden files)

Moving Around

CommandWhere It Takes You
cd foldernameInto a folder
cd ..Up one level (to the parent folder)
cd ~Back to your home directory

Looking at Files

CommandWhat It Does
cat filenameShow the entire file contents
less filenameView a long file (use arrow keys to scroll, q to quit)

Working with Files

CommandWhat It DoesExample
cpCopy a filecp segment.yml backup.yml
mvMove or rename a filemv draft.yml final.yml
rmDelete a filerm old-segment.yml
mkdirCreate a new foldermkdir segments

Searching

CommandWhat It DoesExample
grepFind text inside filesgrep "high-value" *.yml

Getting Help

Any command will explain itself:

bash
tdx --help           # See all tdx commands
tdx sg --help        # See segment commands
tdx journey --help   # See journey commands

Common tdx Commands

For full details, see the Commands Reference.

CommandWhat It Does
tdx sg pullDownload segments from server
tdx sg pushUpload your changes
tdx sg validateCheck your YAML before pushing
tdx journey pullDownload journeys from server
tdx journey pushUpload journey changes
tdx claudeStart AI assistant

What You've Learned

You now have a reference for recovering from common terminal situations. You don't need to memorize these—bookmark this page and return when you need it.

The terminal becomes familiar with practice. Each time you use tab to auto-complete or up arrow to recall a command, you're building muscle memory that makes the next task faster.