Show Menu
Cheatography

CSCI CheatSheet Tony Cheat Sheet (DRAFT) by

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

BERGH

Sudo
You become Groot, I mean Root
Globbing
* any character any number of times ? any one character one time -a get files -nr numaric sort & reverse it -h human-­rea­dable .iname -Case-­ins­ens­itive -r recrusive
find
-finds files
mkdir
-makes direct­ories
rmdir
- remove direct­ories
stty sane
grep
du
ls
cd
sort
head
tail
dd if=/de­v/u­random bs=100 count=1
(One Random number)
Create Home Directory
/home/­<us­eri­d>/
 
chown <us­eri­d>(­:group) /home/­<us­eri­d>/
 
chmod "­Bunch of Crazy Number­s"/h­ome­/<u­ser­id>
Bunch of Crazy Numbers
777 664
 
755 For Direct­ories
 

aa

firewa­ll-cmd
--add-port --add-­service --runt­ime­-to­-pe­rmanent
sudo su
journalctl
-u (Service)
ping
-s
env
Lists all running enviro­nments
./file­_na­me.sh
" " and ' '
do different things in shell
echo
does it as a string
expr
does math
!/bin bash (old) ->
/bin/env bash (new)
touch
chmod
+x *.sh