diff --git a/cheat/cheatsheets/alias b/cheat/cheatsheets/alias new file mode 100644 index 0000000..f9c515a --- /dev/null +++ b/cheat/cheatsheets/alias @@ -0,0 +1,11 @@ +# alias - Creates an alias of a command +*Stick these in your .bashrc/.bash_profile for permenant use, otherwise lost on re-entry + +alias ll='ls -l' +alias lll='ls -al' +alias vi='vim' +alias ..='cd ..' +alias c='clear' +alias rkhunter='rkhunter --versioncheck --update --autox --skip-keypress --check' + +Running just `alias' will show your current aliases. diff --git a/cheat/cheatsheets/cat b/cheat/cheatsheets/cat new file mode 100644 index 0000000..c80b75f --- /dev/null +++ b/cheat/cheatsheets/cat @@ -0,0 +1,10 @@ +# cat - concatenate and print files +cat [-benstuv] [filename] + +-b : Number non blank lines (1 indexed) +-e : Display non printing chars +-n : Number output (1 indexed) +-s : Single spaced output +-t : Display non printing chars (Tab as `^I') +-u : Disable output buffering +-v : Display all non printing chars no matter what diff --git a/cheat/cheatsheets/cp b/cheat/cheatsheets/cp new file mode 100644 index 0000000..f1de317 --- /dev/null +++ b/cheat/cheatsheets/cp @@ -0,0 +1,14 @@ +# cp - copy. Copies a file or directory +cp [-a, -f, -H, -i, -L, -n, -p, -P, -R, -X] [-v] [source] [target] + +-a : Same as -pPR +-f : Force +-H : Follow sym links +-i : Prompt before overwrite +-L : If -R, follow sym links +-n : Do not overwrite +-P : If -R, Do not follow sym links (Default) +-p : Preserve meta data +-R : Recursive (cp directories) +-X : Do not copy extended attributes or resource forks +-v : Verbose diff --git a/cheat/cheatsheets/export b/cheat/cheatsheets/export new file mode 100644 index 0000000..34223a0 --- /dev/null +++ b/cheat/cheatsheets/export @@ -0,0 +1,5 @@ +# Export makes a variable something that will be included in child process environments +export VARNAME="value" + +# Calling export with no arguments will show current shell attributes +export diff --git a/cheat/cheatsheets/kill b/cheat/cheatsheets/kill new file mode 100644 index 0000000..836c8ec --- /dev/null +++ b/cheat/cheatsheets/kill @@ -0,0 +1,7 @@ +# kill - Kills a process + +# Kill gracefully +kill -15 [PID] + +# Force kill (*Only use if -15 does not work first, this is dirty*) +kill -9 [PID] diff --git a/cheat/cheatsheets/mv b/cheat/cheatsheets/mv new file mode 100644 index 0000000..c31de4c --- /dev/null +++ b/cheat/cheatsheets/mv @@ -0,0 +1,7 @@ +# mv - move. Moves a file or directory +mv [-f, -i, -n] [-v] [source] [target] + +-f : No prompt before overwriting something in target destination. Overrides any previous -i or -n args. +-i : Prompt before overwriting something. Overrides any previous -f or -n args. +-n : Do not overwrite anything. Overrides any previous -f or -i args. +-v : Verbose diff --git a/cheat/cheatsheets/pwd b/cheat/cheatsheets/pwd new file mode 100644 index 0000000..ab7f8fb --- /dev/null +++ b/cheat/cheatsheets/pwd @@ -0,0 +1,3 @@ +# Print Working Directory +# The `pwd' command will show you the absolute path of your current directory on the filesystem +pwd diff --git a/cheat/cheatsheets/wc b/cheat/cheatsheets/wc new file mode 100644 index 0000000..99c3fa9 --- /dev/null +++ b/cheat/cheatsheets/wc @@ -0,0 +1,7 @@ +# wc - word count (or lines, characters, or bytes) +wc [-clmw] [output] + +-c : Number of bytes (cancels -m opt) +-l : Number of lines +-m : Number of characters (cancels -c opt) +-w : Number of words