Cheat Sheets


Created: 2018 March 22nd

Updated: 2019 February 11th

Edit this page on GitHub

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.).

1# navigate to download location of .tar.gz
2sudo mv downloaded-binary.tar.gz /usr/local/bin/downloaded-binary.tar.gz
3sudo tar zxf downloaded-binary.tar.gz

See further details on how to install a binary.

Get build info

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

Get kernel version

1uname -r

Get architecture

1dpkg --print-architecture
2# amd64

See what Linux version

1cat /etc/issue
2# Debian GNU/Linux 9 \n \l

force uninstall a package

Nuclear option:

see what services are available

1ll /etc/systemd/system

see what services are running

1journalctl -ef