Mentoring SysAdmin Session 1
Today I dictated a mentoring class regarding SysAdmin with the basic of bash, Here the notes for the session.
- Tools
- File system
- Permissions
- Basic unix commands
Tools
File system
$ tree
/ -> root
|-- /var -> system data
|-- /logs -> system logs
|-- /etc -> system config
|-- /sys -> kernel info
|-- /home -> user namespace
|-- /tmp -> temp data
Permissions
ls -l
drwxr-xr-x - mijail 1 Jun 18:50 folder
.rw-r--r-- 142 mijail 1 Jun 18:50 document.txt
Structure
[d][rwx][r-x][r-x]
Change permissions
chmod XXX file
[USER][GROUP][EVERYBODY]
Where X is a binary representation
0 -> [---]
1 -> [--x]
2 -> [-w-]
3 -> [-wx]
4 -> [r--]
5 -> [r-x]
6 -> [rw-]
7 -> [rwx]