Skip to content

Commit

Permalink
Add instructions for how to quit less (#354)
Browse files Browse the repository at this point in the history
I've seen a lot of beginners get very confused and stuck when they have
opened up `less` and it's not obvious how to get out.
  • Loading branch information
illicitonion authored and dwmkerr committed Jan 24, 2025
1 parent a6a1900 commit 07b07f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/02-core-skills/07-thinking-in-pipelines/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ You'll see something like this:

This long list of files would be hard to search through if it was printed directly to the shell, but in the pager we can use the `d` and `u` keys to go _down_ and _up_, or the `/` and `?` keys to search forwards or backwards.

To quit the pager and get back to your shell, use the `q` key. This is a useful command to know: lots of tools will show their output in a pager without asking you, and pressing `q` will generally get you out of them.

Piping into your pager is a really useful trick - you can read more about pagers in [Chapter 5 - Getting Help](../../01-transitioning-to-the-shell/05-getting-help/index.md).

**File**
Expand Down

0 comments on commit 07b07f4

Please sign in to comment.