UnixToolTip's profile picture. Tips on Unix utilities and related topics from @JohnDCook.

Unix tool tip

@UnixToolTip

Tips on Unix utilities and related topics from @JohnDCook.

Fissato

'The enjoyment of one's tools is an essential ingredient of successful work.' -- Donald E. Knuth


Suppress file name when searching over multiple files: grep -h


How to replace a character with a newline in Emacs: M-x replace-string RET ; RET C-q C-j.


Avoiding Multiprocessing Errors in Bash Shell johndcook.com/blog/2024/02/1…


Day of the year: date '+%j'


Don't copy-paste from a website to a terminal thejh.net/misc/website-t…


The GNU version of date lets you do things like the following: date -d 'today + 90 days'


Example uses for xxd, head -c, and openssl dgst

How blocks are chained in a blockchain, in full detail johndcook.com/blog/2025/10/2…

CompSciFact's tweet image. How blocks are chained in a blockchain, in full detail

johndcook.com/blog/2025/10/2…


In bash, !?foo will repeat the most recent command that contained the string 'foo'.


Minimizing context switching between shell and Python johndcook.com/blog/2019/12/3…


ls -X will group files by extension.


Inside less, /foo will search for 'foo'.


In bash, ^foo^bar repeats the latest command, replacing the first instance of 'foo' with 'bar'.


Spaces in file names are lawful evil.


Emacs dired takes the same switches as ls. C-u C-x d will prompt for switches then open dired.


Delete blank lines: awk NF


Repost di Unix tool tip

We should create some form of distributed version control system so this can’t happen

My github account is suspended??

grimcodes's tweet image. My github account is suspended??


Loading...

Something went wrong.


Something went wrong.