Tech Reflect
  • Home
  • About This Site
  • Contact me
  • Search Icon
Using “Marks” in Terminal

Using “Marks” in Terminal

2017-03-20

Table of Contents

Toggle
  • Copying the output of a command
    • The usual way:
    • Alternative using Marks:
  • Navigate between commands
    • The usual way:
    • Alternative using Marks:
  • Extra credit:

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 the first tip above to navigate between prompts and then select only the output for that command.

Genius.

Extra credit:

Look in the Edit menu for anything that mentions “Marks” and there is some neat stuff in there for users needing more than this simple trick.


geeky, macOS tips

Post navigation

NEXT
Common software usability issues
PREVIOUS
Mailing list etiquette
Comments are closed.

Get Monthly Updates

Recent Posts

  • Inserting random email sigs in Mail on iOS
  • Keep Instagram open to finish posting…
  • How I predicted the rise of Twitter, barely used it, and amassed 35,000 followers
  • Apple Books 2022, in pictures
  • Killing one bird with two-and-a-half stones in Mac OS X Mail

Categories

  • analog (1)
  • apple career (12)
  • apple inside (19)
  • apple stories (20)
  • bertrand serlet (3)
  • bugs (3)
  • essays (15)
  • geeky (21)
  • interviews (4)
  • iOS tips (4)
  • Mac OS X (7)
  • macOS tips (36)
  • personal (8)
  • predictions (1)
  • products (5)
  • prototypes (6)
  • scott forstall (7)
  • scripting (2)
  • siri (2)
  • steve jobs (16)
  • tim cook (1)
  • workplace (15)

Get Monthly Updates

About cricket


Me with Guiness the owl

25 years in tech. I like to write manifestos. I like to offer interesting tips. I like making fun of things. Everyone copes differently.

My Other Blogs

  • Free Range Parrots
  • Plucky Tree (personal)
© 2025   All Rights Reserved.