I have made a study about fundamentals of OS and how VM works.
- User & Hardware Interface
- Virtual Machines are simply isolated systems based on host machine to boot another Operating system.
- A hypervisor allows one host computer to support multiple guest VMs by virtually sharing its resources, such as memory and processing.
- There are mainly two types of Hypervisor
- TYPE 1
- TYPE 2
- The main difference between
Type 1
vs.Type 2
hypervisors is thatType 1
runs on bare metal andType 2
runs on top of an operating system. Each hypervisor type also has its own pros and cons and specific use cases. Type 1
is adopted by most of the companies but for personal usage, we useType 2
.
- Now, we are having
Containers
as a light weight alternative which is now been used in cloud and DevOps in a huge scale.
- First of all, let's make it clear that Linux is not an Operating System. Rather it is a Kernel.
- Ubuntu, CentOS, Alpine, Kali, ParrotOS are few examples of Linux Distributions which are actual OS based on that Kernel.
- When we boot up a Linux system, we find these existing folders. Here are the significance of those :
- /home --> Root user's home directory
- /bin --> Executables for most essential user commands
- /sbin --> System Relevant Executables (Requires Super User access)
- /lib --> Essential shared library that are used by executables from /bin and /sbin
- /usr --> User home directory (Obsolete)
- /usr/local --> Third party apps like Docker, Java, Minikube are installed here
- /opt --> Third party apps are installed which do not split data with different directories for example IDEs
- /boot --> System booting files
- /etc --> Configuration of System-wide applications are stored
- /dev --> Location of Device files like Keyboard, Mouse, Hardrive, etc.
- /var --> Contains files to which system writes data during the course of it's operation.
- /tmp --> Temporary resources required for the same processes
- /media --> Mounts removable media
- /mnt --> Mounts temporary file systems (Obsolete)
-
Files starting with dot (.) are hidden. They are also termed as dotfiles. You can view those by ticking the check box of the folder settings. Else you can try to run "ls -a" in terminal to show all files and folder including the hiddens ones.
-
Here is the list of Linux Terminal Commands prepared by myself : Handwritten Cheatsheet.pdf
Thanks for reading till the very end.
Follow me on Twitter, LinkedIn and GitHub for more amazing blogs about Cloud, DevOps and More !