Tech Reflect

Tech Reflect

Share this post

Tech Reflect
Tech Reflect
Using “Marks” in Terminal

Using “Marks” in Terminal

Chris Hynes - cricket's avatar
Chris Hynes - cricket
Mar 21, 2017
∙ Paid

Share this post

Tech Reflect
Tech Reflect
Using “Marks” in Terminal
Share

Marks are a little used feature in Terminal but can be insanely useful depending on how you use Terminal. I’ll explain by example.

Copying the output of a command

The usual way:

  • Start with a Terminal window where you’ve run a number of commands already

  • Run a Terminal command that spews a lot of output

  • Decide you want to move the output into a bug report or email

  • Hunt in the Terminal window for where you typed the command and manually drag or shift-select to get just the output of the command.

Alternative using Marks:

Hit Command-Shift-A and it selects all the output of the most recent command.

Navigate between commands

The usual way:

  • Run a series of Terminal commands that spew a lot of output

  • Decide you want to navigate between the various commands along with their output

  • Scroll around and use prompt color or some other means to find each of the prompts to see the commands and output

Alternative using Marks:

Using Command-UpArrow and Command-DownArrow to jump between each prompt. Combine this with t…

Keep reading with a 7-day free trial

Subscribe to Tech Reflect to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Christopher Hynes
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share