frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Assorted less(1) tips

https://blog.thechases.com/posts/assorted-less-tips/
72•todsacerdoti•4h ago

Comments

fragmede•2h ago
There -R to quit if the file is less than the screen size. There's also most as an alternative pager, and also glow (of course which, my fork of it is better) to render md files in the terminal.
lioeters•5m ago
Oh I see what you mean about glow, that looks like a nice UX improvement - I'm going to try your fork.

https://github.com/charmbracelet/glow/compare/master...fragm...

etra0•2h ago
The tip that I've been using quite a lot lately by debugging long log files is using `&` to filter what I want to read and `&!` to filter-out what's not useful (and they support regexes).

Admittedly, they are a bit slow sometime and sure, you could use `grep -v` then pipe which is way faster, but they've saved me on removing noise from logfiles from time to time when you don't always know what to filter beforehand :).

EDIT: It was in TFA.

JayGuerette•2h ago
Also -X or --no-init

" ... desirable if the deinitialization string does something unnecessary, like clearing the screen."

I prefer to not clear the screen. I usually want to continue to refer to something or even copy/paste from the content to my current command line.

Izkata•1h ago
And combined with -E, it'll quit immediately if the output is smaller than the terminal size.

...And combined with some of the other options in the post, my go-to has been "less -SEXIER" for a long time. Specifying E twice doesn't seem to do anything except make this easier to remember.

marcosdumay•2m ago
I'm reading it correctly that it will cause less to exit if you scroll until the end of file even if the file is larger than the terminal size?
teeray•2h ago
Surprised they missed follow! It’s a bit odd to use, but once you get used to it it’s better than tail in many circumstances IMO. `less +F` starts less following stdin or whatever file argument you’ve provided. <C-c> breaks following, allowing you to search around a business-as-usual `less` session. Hitting `F` (that’s uppercase) starts following again. Yes, you can just start following within a session with `F` too if you forgot to add +F to the `less` invocation.
sprt•1h ago
I'm so mad that I didn't know the hitting F thing!
layer8•44m ago
It would be nice to have a mode that follows in the sense of automatically picking up new output, but that simultaneously would let you navigate around, similar to how terminals behave. Then you’d only need an autoscroll toggle for when you’re at the bottom.
eulgro•2h ago
Some of these come intuitively when you know how to use vim. I expect to be able to search when pressing / in terminal programs, just like I expect Ctrl+F to work in GUIs.
btdmaster•1h ago
You can also press `s` to save data from a pipe to a file rather than manually copy pasting.
jez•59m ago
Less can be configured with a ~/.lesskey file

I have a single line in my config[1] which binds s to back-scroll, so that d and s are right next to each other and I can quickly page up/down with one hand.

If you’re on macOS, you may not be able to use this unless you install less from Homebrew, or otherwise replace the default less.[2]

[1] https://github.com/jez/dotfiles/blob/master/lesskey#L2

[2] https://apple.stackexchange.com/questions/27269/is-less1-mis...

inejge•55m ago
Two things that have helped me a lot of times:

-L: skip preprocessing the input file. When opening rotated log files with the names like logfile.1, logfile.2... the default preprocessor on some distros will recognize them as man page source and helpfully pipe through nroff. If the file is largish this introduces an annoying pause. Using -L skips all that.

Ctrl-R as the first character of a search string will search for that literal string, not the regular expression. Nice if you have regex metacharacters in the search string and don't want to bother with escaping (and don't need the regex facilities, of course.)

linhns•42m ago
I like less and found that https://github.com/noborus/ov can be a good modern alternative to it.
eitau_1•12m ago
Looks cool! Annoyingly less sometimes bugs out and starts spinning, have to kill it from the outside.
pvtmert•30m ago
s/assorted/useful/

FracturedJson

https://github.com/j-brooke/FracturedJson/wiki
280•PretzelFisch•4h ago•69 comments

Ask HN: Who is hiring? (January 2026)

40•whoishiring•53m ago•20 comments

10 years of personal finances in plain text files

https://sgoel.dev/posts/10-years-of-personal-finances-in-plain-text-files/
265•wrxd•5h ago•99 comments

39th Chaos Communication Congress Videos

https://media.ccc.de/b/congress/2025
210•Jommi•3h ago•23 comments

Assorted less(1) tips

https://blog.thechases.com/posts/assorted-less-tips/
72•todsacerdoti•4h ago•16 comments

Standard Ebooks: Public Domain Day 2026 in Literature

https://standardebooks.org/blog/public-domain-day-2026
232•WithinReason•8h ago•40 comments

HPV vaccination reduces oncogenic HPV16/18 prevalence from 16% to <1% in Denmark

https://www.eurosurveillance.org/content/10.2807/1560-7917.ES.2025.30.27.2400820
303•stared•6h ago•143 comments

Show HN: Dealta – A game-theoretic decentralized trading protocol

https://github.com/orgs/Dealta-Foundation/repositories
37•kalenvale•4h ago•11 comments

Why users cannot create Issues directly

https://github.com/ghostty-org/ghostty/issues/3558
594•xpe•15h ago•213 comments

Ask HN: Who wants to be hired? (January 2026)

9•whoishiring•53m ago•19 comments

Happy Public Domain Day 2026

https://publicdomainreview.org/blog/2026/01/public-domain-day-2026/
375•apetresc•15h ago•72 comments

ThingsBoard: Open-Source IoT Platform

https://github.com/thingsboard/thingsboard
8•pretext•5d ago•0 comments

Punkt. Unveils MC03 Smartphone

https://www.punkt.ch/blogs/news/punkt-unveils-mc03
5•ChrisArchitect•30m ago•2 comments

What You Need to Know Before Touching a Video File

https://gist.github.com/arch1t3cht/b5b9552633567fa7658deee5aec60453/
106•qbow883•5d ago•75 comments

A small collection of text-only websites

https://shkspr.mobi/blog/2025/12/a-small-collection-of-text-only-websites/
58•danielfalbo•5h ago•20 comments

A website to destroy all websites

https://henry.codes/writing/a-website-to-destroy-all-websites/
662•g0xA52A2A•20h ago•335 comments

Matz 2/2: The trajectory of Ruby's growth, Open-Source Software today etc.

https://en.kaigaiiju.ch/episodes/matz2
75•kibitan•6d ago•31 comments

Can I throw a C++ exception from a structured exception?

https://devblogs.microsoft.com/oldnewthing/20170728-00/?p=96706
46•birdculture•4d ago•9 comments

Show HN: I built a clipboard tool to strip/keep specific formatting like Italics

https://custompaste.com
24•EvaWorld9•4h ago•8 comments

IPv6 just turned 30 and still hasn't taken over the world

https://www.theregister.com/2025/12/31/ipv6_at_30/
35•Brajeshwar•1h ago•36 comments

Show HN: Jsonic – Python JSON serialization that works

https://medium.com/dev-genius/jsonic-python-serialization-that-just-works-3b38d07c426d
17•orrbenyamini•6d ago•8 comments

FreeBSD: Home NAS, part 1 – configuring ZFS mirror (RAID1)

https://rtfm.co.ua/en/freebsd-home-nas-part-1-configuring-zfs-mirror-raid1/
100•todsacerdoti•10h ago•20 comments

Cameras and Lenses (2020)

https://ciechanow.ski/cameras-and-lenses/
482•sebg•23h ago•53 comments

Vibe Coding Killed Cursor

https://ischemist.com/writings/long-form/how-vibe-coding-killed-cursor
8•hiddenseal•1h ago•0 comments

Can Bundler be as fast as uv?

https://tenderlovemaking.com/2025/12/29/can-bundler-be-as-fast-as-uv/
315•ibobev•19h ago•94 comments

Parental Controls Aren't for Parents

https://beasthacker.com/til/parental-controls-arent-for-parents.html
158•beasthacker•3h ago•142 comments

The Netflix Simian Army (2011)

https://netflixtechblog.com/the-netflix-simian-army-16e57fbab116
10•rognjen•2h ago•9 comments

Joseph Campbell Meets George Lucas – Part I (2015)

https://www.starwars.com/news/mythic-discovery-within-the-inner-reaches-of-outer-space-joseph-cam...
35•indigodaddy•1d ago•13 comments

Contact the ISS

https://www.ariss.org/contact-the-iss.html
77•logikblok•5d ago•22 comments

One Number I Trust: Plain-Text Accounting for a Multi-Currency Household

https://lalitm.com/post/one-number-i-trust/
86•ayi•6h ago•58 comments