TIL - Today I Learned
Things I learned from colleagues, the internet or just out of curiosity.
tail -f <logfile> | grep --line-buffered
: filter logfile continuously while debugging a service or some ongoing process&<term>
inless
: show only lines matching filter in less pagerctrl+x ctrl+e
inbash
: opens default editor (specified with$EDITOR
or$VISUAL
) for specifying a prompt, will get executed on save+close (src, look foredit-and-execute-command
).ctrl+r
inbash
: fuzzy search in bash history, press again for cycling throughctrl+x
andctrl+a
on an action while interactive rebase: cycle through the rebase actions when interactively rebasing within an editor (git rebase -i
)yes | dd oflag=/mnt/data iflag=fullblock oflag=direct bs=16M count=$((1024*1024/16)) status=progress
: generate 1TB of non-random test data with storage backend speed, avoid buffering where possiblego doc --all strings
: local documentation of the gostrings
packagedu --summarize -h .
: show summarized usage of a folder human friendly