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-readable .iname -Case-insensitive -r recrusive |
find |
-finds files |
mkdir |
-makes directories |
rmdir |
- remove directories |
stty sane |
grep |
du |
ls |
cd |
sort |
head |
tail |
dd if=/dev/urandom bs=100 count=1 |
(One Random number) |
Create Home Directory |
/home/<userid>/ |
|
chown <userid>(:group) /home/<userid>/ |
|
chmod "Bunch of Crazy Numbers"/home/<userid> |
Bunch of Crazy Numbers |
777 664 |
|
755 For Directories |
|
|
aa
firewall-cmd |
--add-port --add-service --runtime-to-permanent |
sudo su |
journalctl |
-u (Service) |
ping |
-s |
env |
Lists all running environments |
./file_name.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 |
|
|
|