Cheat Sheets


Created: 2018 March 22nd

Updated: 2019 February 11th

Install a binary

If you’re working on a local machine with administrator permissions, you may want to add downloaded-binary to your PATH, so that you can access it directly from any project folder. You could do this by extracting it to a directory that is already on your PATH. (For example, /usr/local/bin is a common choice for Mac and Linux.).

GNU Bash icon
# navigate to download location of .tar.gz
sudo mv downloaded-binary.tar.gz /usr/local/bin/downloaded-binary.tar.gz
sudo tar zxf downloaded-binary.tar.gz

See further details on how to install a binary.

Get build info

GNU Bash icon
uname -a
# Linux DESKTOP-KCGTGRV 4.4.0-43-Microsoft
# 1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux

Get kernel version

GNU Bash icon
uname -r

Get architecture

GNU Bash icon
dpkg --print-architecture
# amd64

See what Linux version

GNU Bash icon
cat /etc/issue
# Debian GNU/Linux 9 \n \l

force uninstall a package

Nuclear option:

see what services are available

GNU Bash icon
ll /etc/systemd/system

see what services are running

GNU Bash icon
journalctl -ef