This is a draft cheat sheet. It is a work in progress and is not finished yet.
Basic Networking
Listing Network Adapters |
CMD |
ip address (ip add) |
Setting Static IP |
PATH |
/etc/sysconfig/network-scripts/ |
|
|
File Managment
rm |
removes a file |
rm -R |
removes a dir (Recursive) |
cat |
displays the content of a file |
cat > |
adds the contents of a file to another file |
cat >> |
Appends the contents of a file to another file |
ln FILE LINKNAME |
Hard Link |
ln -s FILE LINKNAME |
Soft Link |
tar -cvf |
Create a .tar to a file location |
tar -czvf |
same as tar -cvf but also gzip's |
|
|
Permissions
Change Mode |
chmod |
Syntax |
chmod [options] mode[,mode] file1 |
Switches |
-R recursive | -f force |-v verbose| |
User, Group, Other |
ugo |
Read, Write, Execute |
rwx |
r-- |
4 |
-wx |
3 |
-w- |
2 |
--x |
1 |
Example 1 |
chmod 777 test.txt |
Example 2 |
chmod -R 755 /scripts |
SUDO |
usermod -aG wheel username |
Help
man -f |
whatis |
man -k |
apropos |
|