Cheatography
https://cheatography.com
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
|
Print working directory. Tells you the directory you're currently in. |
|
Change directories. i.e.: cd [directory]
. You can cd ..
to go up one directory (the parent directory). |
|
List files in current directory. Add -l
to format it in a list or -a
for hidden files too. |
|
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-complete 90% of the things you're typing in a bash prompt! This will save you a TON of time.
python
|
Start the IDLE IDE for python 3.5 |
|
Starts the python shell in the terminal. |
|
|
ubuntu apt (install stuff, need sudo)
|
Updates the local list of packages AVAILABLE to install. You're pretty much updating your computer to the new versions of everything out there. |
|
Search for a package. If you search for abc, it'll show abcd and xyzabc. It'll show everything containing that text. |
|
Install a package. |
|
Show details about a package before you install, so you can make sure it's what you want. |
random
|
Make the cow say stuff. |
|
Like ls
, but not. It's a f$%!ing train! |
|
Enter the matrix. |
|
|
|