All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Practical Tips for Using the Unix/Linux 'less' Command Effectively

By

todsacerdoti

4mo ago· 6 min readen

Summary

This blog post aggregates practical tips for using the Unix/Linux utility 'less' command, based on a Reddit discussion. It covers various advanced usage scenarios including operating on multiple files, adding files after starting, using marks for navigation, searching with regular expressions, and other productivity tips for developers and system administrators working with command-line tools.

Key quotes

· 3 pulled
While most folks invoke less at the tail of a pipeline like $ command | less, you can directly provide one or more files to open $ less README.txt file.c *.md
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...
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.
Snippet from the RSS feed
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.

You might also wanna read