Hacker News with Generative AI: Unix

The history and use of /etc/glob in early Unixes (utoronto.ca)
One of the innovations that the V7 Bourne shell introduced was built in shell wildcard globbing, which is to say expanding things like *, ?, and so on.
lc: List files in categories (and columns) – from Coherent Unix clone (github.com/gdm85)
This is a port of 'lc' (List files in categories and columns) from MWC (Mark Williams Company) Coherent UNIX.
/bin/sh: the biggest Unix security loophole (1984) [pdf] (tuhs.org)
Seconds Since the Epoch (aphyr.com)
This is not at all news, but it comes up often enough that I think there should be a concise explanation of the problem. People, myself included, like to say that POSIX time, also known as Unix time, is the number of seconds since the Unix epoch, which was 1970-01-01 at 00:00:00.
Biggest shell programs (github.com/oils-for-unix)
Unix Review Magazine Interviews Larry Tesler (computeradsfromthepast.substack.com)
The worst problems occur when people walk into their office and—without warning—find technology they never asked for.
When was the famous "sudo warning" introduced? (2019) (stackexchange.com)
On all Unix-like operating systems, sudo is often provided as the standard package for executing commands as superuser (or an alternative user). When sudo is invoked by the user for the first time, many systems print the following well-known "Sudo Warning":
Disillusioning the Magic of the Fork System Call (codingconfessions.com)
Unix-like operating systems famously use the fork system call for creating a new process. The way this system call works in the user code can be quite bewildering when you first learn about it.
Disillusioning the Magic of the Fork System Call (codingconfessions.com)
Unix-like operating systems famously use the fork system call for creating a new process.
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.