Hacker News with Generative AI: Unix

Pipe Viewer – A Unix Utility You Should Know About (catonmat.net)
Hi all! I'm starting a new article series here. This one is going to be about Unix utilities that you should know about. The articles will discuss one Unix program at a time. I'll try to write a good introduction to the tool and give as many examples as I can think of.
Undergrad thought he had mastered Unix in weeks. Then he discovered rm -rf (theregister.com)
Miles’ version of the .logout file included the notoriously dangerous rm -rf ~* command, which erases everything it can find in a user’s home directory.
S/Sed/Ed (aartaka.me)
This post starts with holding a grudge: Posix regular expressions are extremely hard to get wrong? Uh... Have you really written any? Sounds like you might not really know either Posix or PCRE. u/bigmell in reply to 5 (Wrong) Regex To Parse Parentheses
Brian Kernighan Reflects on Unix: A History and a Memoir [video] (youtube.com)
Lynis – Security auditing and hardening tool, for Unix-based systems (github.com/CISOfy)
Lynis - Security auditing and hardening tool, for UNIX-based systems.
Unix Programmer's Manual Third Edition [pdf] (1973) (dspinellis.github.io)
The history of Unix's ioctl and signal about window sizes (utoronto.ca)
One of the somewhat obscure features of Unix is that the kernel has a specific interface to get (and set) the 'window size' of your terminal, and can also send a Unix signal to your process when that size changes.
Unix core utilities implemented in Haskell (github.com/Gandalf-)
Unix core utilities implemented in Haskell.
Against /tmp (dotat.at)
I commented on Lobsters that /tmp is usually a bad idea, which caused some surprise. I suppose /tmp security bugs were common in the 1990s when I was learning Unix, but they are pretty rare now so I can see why less grizzled hackers might not be familiar with the problems.
The useful use of cat (mrmr.io)
Some people insist that we should never use a cat.
bc Is the Only Calculator You Need in Unix (medium.com)
bc, for basic calculator, is an arbitrary-precision calculator language with syntax similar to the C programming language. In this post, we will explore the features of bc and how to use it.
Unix for Poets: Basic NLP Tasks Using Unix Tools (medium.com)
Often, we become so captivated by complexity and sophistication that we overlook the profound effectiveness of simple, fundamental methods.
We Should Teach Students Unix, or the Power of Pipes (atthis.link)
Teaching the command-line is increasingly eschewed for all-in-one IDEs and web platforms. For long-term transferable skills, we should revisit UNIX in Computing curriculums.
Apple macOS 15 Sequoia is officially Unix (theregister.com)
Apple macOS 15 Sequoia appeared in mid-September and is an official, compliant version of UNIX™, but that may not mean exactly what you think.
Apple macOS 15 Sequoia is officially Unix (theregister.com)
Apple macOS 15 Sequoia appeared in mid-September and is an official, compliant version of UNIX™, but that may not mean exactly what you think.
Switching customers from Linux to BSD because boring is good (theregister.com)
EuroBSDcon 2024 One of Stefano Marinelli's NetBSD boxes sat quietly serving for a decade, because everyone forgot about it. This is how Unix is meant to be.
Show HN: My microkernel-based OS built from scratch now has basic Unix commands (github.com/lux-operating-system)
lux (intentionally stylized in lowercase) is a portable work-in-progress microkernel written from scratch that currently runs on x86_64, with future plans for an ARM64 port.
The Unix Workbench (seankross.com)
This work by Sean Kross is licensed CC0. Zero rights reserved.
Daemonization in Unix programs is probably about restarting programs (utoronto.ca)
It's standard for Unix daemon programs to 'daemonize' themselves when they start, completely detaching from how they were run; this behavior is quite old and these days it's somewhat controversial and sometimes considered undesirable. At this point you might ask why programs even daemonize themselves in the first place, and while I don't know for sure, I do have an opinion. My belief is that daemonization is because of restarting daemon programs, not starting them at boot.
Traditionally, init on Unix was not a service manager as such (utoronto.ca)
Init (the process) has historically had a number of roles but, perhaps surprisingly, being a 'service manager' (or a 'daemon manager') was not one of them in traditional init systems.
Idiomatic Awk (2010) (backreference.org)
This is just one of many possible ways to do this.
The Heart of Unix (2018) (ericnormand.me)
Despite all of its warts, I like working in Linux.
Mount Unix system into Common Lisp image (github.com/PuellaeMagicae)
Exploring pre-1990 versions of wc(1) (2023) (sigwait.org)
Can you blame a tool that doesn't support a standard X when the tool was written before X was invented?
S6 – Skarnet's small supervision suite (skarnet.org)
s6 is a small suite of programs for UNIX, designed to allow process supervision (a.k.a service supervision), in the line of daemontools and runit, as well as various operations on processes and daemons.
Windows NT vs. Unix: A design comparison (blogsystem5.substack.com)
Over the years, I’ve repeatedly heard that Windows NT is a very advanced operating system and, being a Unix person myself, it has bothered me to not know why. I’ve been meaning to answer this question for years and I can do so now, which means I want to present you my findings.
Advanced Programming in the Unix Environment (netmeister.org)
Beyond Ctrl-C: The dark corners of Unix signal handling (sunshowers.io)
Imagine you’re in the middle of a conversation, when suddenly, a tap on the shoulder interrupts your train of thought. You turn to face the interloper, only to find a dear friend with an urgent message. In that moment, you’re faced with a choice: do you ignore the interruption and continue your conversation, or do you pause to address your friend’s needs?
Beyond Ctrl-C: The dark corners of Unix signal handling (sunshowers.io)
Parsing Awk Is Tricky (raygard.net)