Session 1
Session 1
&
SHELL SCRIPTING
Session-1
Agenda
◦ The first 20 hours to learn anything : Josh Kaufman
◦ 5W’s 1H
◦ Introduction to Operating Systems
◦ Linux Introduction (5w’s h)
◦ Open-Source
◦ Distributions
◦ File Systems
◦ Kernel – important parts of the kernel
◦ Linux Vs Windows
◦ Virtualization – why?
The first 20 hours to learn anything
Key Points https://www.youtube.com/watch?v=5MgBikgcWnY
Basics of Linux
Basic Commands
Administration
Networking
Shell Scripting
And much more….
Learn enough to self-correct
Instructor teaching in class Student Contributing
Exercise Exercise
What is Linux?
how where Where is Linux used?
When to use Linux?
Why should I learn Linux?
5w1h Who developed Linux?
How in real world Linux gained popularity?
who when
why
Introduction to Operating Systems
Scenario 1 Solution
Distributions:
https://www.linuxvmimages.com/
Distributions (distros)
Redhat Products
Linux Vs Windows
Linux Windows
Price Free $$$$
Ease Not User Friendly User Friendly
Reliability Runs for years Often requires reboot
Software Mostly enterprise level SW Much larger selection of SW
Multi Tasking Best for multi tasking Available with High CPU/Mem resource
Security Very Secure Somewhat secure (3rd party)
Open Source Open to Public Not an Opensource
Kernel :
important parts of
kernel
• Process Management
• Memory Management
• Hardware Device Drivers
• Filesystem drivers
• Network Management
• Various other bits and pieces
File System
◦ Linux treats everything as a file
◦ Every operating system stores data on Disk Drives using structures called a file system.
◦ The file system consists of files, directories and info needed to access and locate them
◦ Different types of file systems : EXT2, EXT3, XFS, windows: NTFS, FAT32
◦ Linux file system stores info in hierarchy of directories and files
• /boot : contains file that is used by the boot loader (grub.cfg)
• /root : root user home directory. It’s not the same as /
• /dev : System Devices
• /etc : Configuration files
• /bin: Everyday user commands
• /sbin: System or file system commands
• /opt: Optional add on apps
• /proc: Running processes (only exist in memory)
• /lib: C program library files needed by commands
• /tmp: directory for temporary files
• /home: directory for user
• /var: system logs
• /run: System daemons that run/ start very early to store tmp runtime files like PID files
• /mnt : to mount external file systems (Ex. NFS)
• /media: for CDROM Mounts
Virtualization : Why virtualization?
◦ Host OS : Windows 10
◦ Install Hypervisor : oracle virtualbox
◦ Install Linux OS
◦ AWS Account
◦ Credit/Debit Card (Virtual Cards)
◦ 750 Hours access for 1 month (Free Tier)
◦ 3 Servers – for 1 hour (AWS counts it as 3 hours)
◦ Host OS – git bash
◦ Key Pair .pem
◦ SSH protocol – we are going to connect to server in the
cloud
◦ Ensure to shut down servers (stopped state)
◦ Do not share your credentials!
END OF SESSION 1