Show Menu
Cheatography

Kurisu's Cheat Sheet Cheat Sheet (DRAFT) by

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

Screen

$ screen -ls
List running screen sessions.
$ screen -r <sc­ree­n>
Resume a detached screen.
$ screen -S <na­me> <co­mma­nd>
Start a new screen session.

Useful UNIX commands

$ python -m Simple­HTT­PServer
Start a HTTP file server on port 8000 in the current dir.
$ curl ifconf­ig.m­e/ip
Get your IP address.
$ sudo !!
Prepend sudo to your last command.
$ grep !! <fi­lte­r>
Search through the output of the last command for
<fi­lte­r>
.

Kurisu's Commands

$ cd NodeStatic && screen -S NodeStatic supervisor app.js
Start Node filese­rver.
$ cd overwatch && screen -S overwatch supervisor app.js
Start IRC Bot
$ clear
Clear the screen.
 

Git

$ git status
List all new or modified files to be commited.
$ git diff
Show file differ­ences not yet staged.
$ git add [file]
Start tracking a file.
$ git reset [file]
Stop tracking a file.
$ git commit -m [message]
Create a commit.
$ git branch [branch name]
Create a new branch.
$ git checkout [branch]
Switch to a branch and update the current working dictio­nary.
$ git branch -d [branch]
Deletes a branch.
$ git rm [file]
Delete a file and stage for deletion.
$ git mv [original] [desti­naton]
Moves a file and updates the reference.
$ git stash
Tempor­arily store all tracked files.
$ git stash pop
Restore stashed files.
$ git stash drop
Discards stashed files.
$ git stash list
List stashes.
$ git push [remote] [branch]
Push to a remote.
$ git pull
Pull from a remote.