My recent comments about less(1) tips seemed to get some traction, so I wrote up more detailed post
blog.thechases.com·8w·
🐚Shell Automation
Preview
Report Post

In a recent discussion on Reddit I shared a number of tips about the common utility less(1) that others found helpful so I figured I’d aggregate some of those tips here.

Operating on multiple files

While most folks invoke less at the tail of a pipeline like

$  command | less

Invoking less in a pipeline

you can directly provide one or more files to open

$  less README.txt file.c *.md

Invoking less directly

Adding files after starting

When reading a document, sometimes you want to view another file, adding it to the file list. Perhaps while reading some C source code you want to also look over the correspo…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help