Show Menu
Cheatography

Elliott-Hacker Cheat Sheet (DRAFT) by

A collection of Linux/bash/python tips for Elliott

This is a draft cheat sheet. It is a work in progress and is not finished yet.

bash

pwd
Print working directory. Tells you the directory you're currently in.
cd
Change direct­ories. i.e.: cd [direc­tory]. You can cd .. to go up one directory (the parent direct­ory).
ls
List files in current directory. Add -l to format it in a list or -a for hidden files too.
cat
Spits out the contents of a file onto the terminal. Great for small text files you want to see inside of.
CTRL-c
Stops whatever command you were just running.
REMEMBER! You can tab-co­­mplete 90% of the things you're typing in a bash prompt! This will save you a TON of time.

python

idle-python3.5
Start the IDLE IDE for python 3.5
python3.5
Starts the python shell in the terminal.
 

ubuntu apt (install stuff, need sudo)

apt update
Updates the local list of packages AVAILABLE to install. You're pretty much updating your computer to the new versions of everything out there.
apt search [package]
Search for a package. If you search for abc, it'll show abcd and xyzabc. It'll show everything containing that text.
apt install [package]
Install a package.
apt show [package]
Show details about a package before you install, so you can make sure it's what you want.

random

cowsay [text]
Make the cow say stuff.
sl
Like ls, but not. It's a f$%!ing train!
cmatrix
Enter the matrix.
cowthink [text]
Quieter than cowsay.