/bin/true

I like coming across the odd history of Unix commands that I use on a daily basis. Here’s one I didn’t know: the true utility, which just exits without error and is often used in infinite loops, was originally just an empty shell script. By definition, it never contained any errors, and quite simply performed its duty. I found out about it from this post:

Read Quote of Ron Spencer’s answer to What is the shortest and most effective code ever written? on Quora

A longer discussion of its history (and the bizarre addition of copyright statements) can be found here.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>