Professional Documents
Culture Documents
***********************************************************************************
***********************
Linux Operators
$ Enviroment variable like HOME and USER, export variable=value echo $USER
| pipe allows you to take the output of a command and use it as input for a
second command
; it works like && but doesnt requiere that the first command works
***********************************************************************************
************************
Commands permissions
chown
chgrp
chmod
***********************************************************************************
*************************************
Links
grep
grep <string> <file>
grep <string> <file> <file2>
***********************************************************************************
*****************************
Misc
sudo -U specify which user you want to run a command as. sudo -U jen whoami
/etc/passwd - Stores user information - Often used to see all the users on a system
/etc/sudoers - Used to control the sudo permissions of every user on the system -
/bin and /sbin - Used for system critical files - DO NOT DELETE
/var - The Linux miscellaneous directory, a myriad of processes store data in /var
ps
ps -ef
top