Practical Tips for Using the Unix/Linux 'less' Command Effectively
By
todsacerdoti
An everything bagel for the brain. Substantive, layered, well-seasoned.
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 pulledWhile 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.
You might also wanna read
systemd-manager-tui: A Terminal-Based Tool for Managing systemd Services
A TUI (Terminal User Interface) application called systemd-manager-tui, available on GitHub, allows users to manage systemd services via D-B
GTFOBins: A Curated List of Unix Binaries for Bypassing Local Security Restrictions
GTFOBins is a curated list of Unix-like binaries that can be exploited to bypass local security restrictions in misconfigured systems. The l
gtfobins.org·1mo agoHow to Enable ZRAM on Linux Systems for Better Memory Optimization
The article discusses enabling ZRAM (compressed RAM) on Linux systems to optimize memory usage and potentially save money on hardware upgrad
cnx-software.com·1mo ago
Cells for NetBSD: Kernel-Enforced Isolation System with Practical Operations
Cells for NetBSD is a kernel-enforced isolation system for the NetBSD operating system that provides jail-like containerization with practic
Understanding Linux Compressed Swap: zswap vs zram Technical Comparison and Recommendations
This article provides expert guidance on Linux memory management technologies zswap and zram, explaining their fundamental differences and o
Direct Disk Installation: Creating a Linux Distro That Installs via curl > /dev/sda
The article describes a technical experiment where the author created a Linux distribution that can be installed by directly piping a disk i
