Terminal

A collection of useful *nix terminal commands I always forget – stored in one place for easy retrieval.

Show size of child directories (1 level)

du -h --max-depth 1

Search apt cache for package

apt-cache search baseutils

Check if package is installed (wildcards allowed)

dpkg-query -l