ref.misc - jgrey4296/jgrey4296.github.io GitHub Wiki

Misc

Main

Find

To find files, but not search .git directories:

find ? -type f -a -not -name "DS_Store" -print -o -type d -name ".git" -prune

hexyl

jq

https://jqlang.github.io/jq/

lskq

for checking file watchers

Man

adding MANPATH adds a custom location

Pandoc creates man pages from markdown: `pandoc ms.1.md -s -t man -o ms.1`

Man expects pages to be gzipped

Performance

top

https://gitlab.com/procps-ng/procps

btop

https://github.com/aristocratos/btop

htop

https://htop.dev/

ripgrep

https://learnbyexample.github.io/learn_gnugrep_ripgrep/

emacs

for documentation, install ‘eamcs-common-non-dfsg’

Links

Shells

Bash

https://github.com/bahamas10/bash-style-guide line length sorting

cat testfile | awk '{ print length, $0 }' | sort -n | cut -d" " -f2-
cmd 2> filename # stderr to filename cmd > filename 2>&1 # stdout to file, stderr to where stdout goes cmd 2>&1 > filename # stdout to copy of stdout, stdout to filename

Nushell

https://www.nushell.sh/book/

⚠️ **GitHub.com Fallback** ⚠️