WHAT ARE WE COVERING 1. Understanding *nix 2. File System Basics 3. Understanding I/O 4. Basic Commands 5. How to Exit VIM 6. Shell Script basics 7. Automation
Slide 4
NIX 1. Family of OS ranging from Unix, Linux, *BSD (FreeBSD, OpenBSD etc) 2. Follow same standards in terms of file systems, directory layout etc
Slide 5
LINUX 1. Free as in free speech not free beer 2. Everyone can create there own Distro 3. Hanna Montanna Linux
and more
Slide 6
LINUX DISTRIBUTIONS 1. Various Linux Distributions 2. Debian Based (apt-get / dpkg) 3. RedHat based (yum / rpm) 4. LTS or not
Slide 7
FILE SYSTEM BASICS 1. Everything is a file 2. File System Layout 3. Standard File system layout 1. / as highest level 2. /etc for all configuration 3. /home : users home folder
Slide 8
Slide 9
FILE SYSTEM TYPES ext2 Maximum file size = 16 GB to 2 TB File system size = 2 TB to 32 TB ext3 1. Journaling (Linux Kernel 2.4.15) 2. Maximum file size = 16 GB to 2 TB 3. File system size = 2 TB to 32 TB ext4 1. Starting from Linux Kernel 2.6.19 ext4 2. Maximum file size = 16 GB to 16 TB 3. File system size = 1 EB 1. 1 EB = 1024 PB 2. 1 PB = 1024 TB
Slide 10
MORE FILE SYSTEM BASIC 1. File System Permissions -rwxrwxrwx 2. Suid bits -rwsrwxrwx 3. sgid bit -rwxrwsrwx 4. sticky bit -rwxrwxrwt 5. First bit can be l,c,b,d,-
Slide 11
SUDO 1. id 0 is omnipotent 2. its suggested not to use root access 3. So how do we do high privilege actions
WRITING CUSTOM SCRIPTS 1. Write a shell script to calculate simple interest 2. Write a shell script to check whether no is even or odd 3. Print prime numbers from 1 to 5000
Slide 22
OVERLOAD COMMANDS 1. alias 2. Why alias and why not 3. find location add path before everything else and then overload