tty.help
Appearance

Display preferences are saved in this browser.

Understand a terminal command.

Look up the tools, read the flags, and see what deserves a closer look.

Nothing runs. Your text stays in this tab. Remove secrets before pasting.

Try an example

Read before you run.

Enter a command to find familiar tools and questions worth asking.

This is a reading aid, not a shell parser or safety verdict.

New to the terminal? Start here

Text with a structure.

Learn to read a command

A command can look like a flat line of text. The shell reads syntax; each program gives its arguments meaning.

A Bash or Zsh pipeline, with ordinary grep and head commands
grep -n "error" app.log | head -n 5

The labels below are reading aids. The colours are optional, not part of the command.

  1. grepCommand name

    The shell resolves the command. Aliases, functions and PATH can affect what runs.

  2. -nOption

    grep interprets this argument: include matching line numbers.

  3. "error"Quoted pattern

    The shell handles the quotes. grep receives error as an argument, without the quote delimiters.

  4. app.logFile argument

    grep treats this argument as the file to search. A relative path depends on the working directory.

  5. |Shell operator

    The shell connects grep’s standard output to head’s standard input. The pipe is not an argument passed to grep.

  6. head -n 5Next command

    head reads that input. Its -n 5 arguments request the first five lines.

Shell syntax → program arguments → output

Here the shell handles quoting and the pipe. grep and head interpret their own options and operands. Other syntax can trigger expansions, redirection or additional commands before a program sees its arguments.

The terminal app displays the session. The shell interprets the command language. Syntax highlighting depends on the shell and its configuration, not simply on whether you use Terminal, Ghostty or another terminal app. CMD and PowerShell have their own rules; this is not a Windows syntax reference.

Illustrative only. Logs can contain secrets, and the whole command and environment matter. The lookup helper above is not a shell parser or a safety verdict.

Command reference

Browse the reference

18 commands found

Risk depends on the whole command and your environment, not just the command name.

Shell operators

How they fit together

Learn the basics

All guides