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.

Sabitlenmiş

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


Create a directory and change into it: mkdir dir && cd $_


Org-mode as a lightweight notebook johndcook.com/blog/2022/08/0…


I don't think I've ever used the kill command without -9. Nuke 'em from orbit. It's the only way to be sure.


The unmount command is umount, no 'n'. Prime candidate for an alias.


sha1sum - compute and check SHA1 message digest


xdg-open will open a file from the commandline using the application associated with its file extension.


sed command to delete the last line of a file: $d


Take every 10th line from a file: awk '!(NR % 10)' file


Automate to save mental energy, not just to save time. johndcook.com/blog/2015/12/2…


sort -c doesn't sort but checks whether a file is sorted, reporting first exception if not sorted.


If you only need to know the number of lines in a large file, wc -l is much faster than wc.


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'


Loading...

Something went wrong.


Something went wrong.