Introduction to Linux and Shell Scripting

Hello! I'm a student passionate about becoming a Cloud and DevOps Engineer. I have a solid foundation in AWS Cloud, Linux, Docker, and Kubernetes.
What is Linux
Linux is a free and open-source operating system; more specifically, it is the kernel.
To understand it better, let's discuss what an operating system (OS) is. An OS is the software installed on a machine to manage resources like RAM, memory, CPU, and more. It acts as a mediator between applications and hardware.

An OS consists of the kernel and some software, with the kernel being the heart of the operating system.
The main tasks of the kernel are:
Device Management
Memory Management
Process Management
Handling System Calls
Why Linux
Most applications are built and tested on Linux servers. The reasons for this are that it is free, open-source, fast, secure, lightweight, and has multiple distributions available. It was developed by Linus Torvalds.
What is SHELL
A shell is a command-line (CLI) interface that allows users to communicate with the kernel. There are different types of shells like sh, bash, zsh, ksh, etc.
Shell scripting is important for automating the daily tasks of a DevOps engineer, which is why it is essential.
Some Basic Shell Commands
1. pwd : print the present working directory
2. ls : lists the files and folder in present working directory
3. cd : change the current directory
4. cp : copy files
5. mv : move and rename files
6. touch : for creating empty files
7. rm : remove files and directory
8. echo : print in terminal
Working with files in Linux
catcat command in linux is used to view the content of file, but it can also be used to override and concatenate the file content.
touchtouch command is used to create empty files.
vivi is a text editor used to create, view content and writing into files in linux,
while opening the files in vi, it opens in command mode, to write into file press
any of the character A,I,O,a,i,o and the one can write into file.
to save the file pressescand the:wq!, hit enter.nanonano is also a text editor like vi.
That'a all about introduction to linux and Shell Scripting.



