Get the latest tech news

Logging Shell Commands in BusyBox? Yes, You Can Now


In an earlier post , I showed how to log every shell command to a remote server using PROMPT_COMMAND in bash . It’s a neat trick, especia...

BusyBox ash is designed to be small, fast, and simple; which means it skips the bells and whistles you’d find in a full shell like bash. This pattern keeps the code clean, avoids nasty cross-module hacks, and is totally in line with how BusyBox handles similar internal wiring elsewhere. When sending your patch, address it to the mailing list and, if your change affects a specific applet, CC the maintainer named in the file’s header.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of shell commands

shell commands

Photo of BusyBox

BusyBox

Related news:

News photo

The curious case of shell commands, or how "this bug is required by POSIX" (2021)

News photo

Show HN: Sshsync – CLI tool to run shell commands across multiple remote servers

News photo

Busybox 1.37 is tiny but capable, the way we like Linux tools to be