Linux is the most common and most loved Platform across the developer community. Most of the DevOps Tools are supported only in Linux.
In this Week we Explored:
Linux CLI:
- Explored that there are different of type shells: Bourne Shell (sh), C Shell (csh or tcsh), Z Shell (zsh), and Bourne Again Shell (Bash).
- Identified the current shell using ' echo $SHELL '.
- Covered basic commands: pwd (print working directory), echo, ls, cd, and file/folder manipulation commands.
VI Editor:
- Learned about VI Editor, the most popular text editor in Linux.
- Covered command and insert modes.
- Explored navigation, deletion, copying, pasting, and file saving (:wq to save and exit, :q to exit).
Linux Commands for User Accounts:
- Learned commands like whoami (to print current user), su username (to switch to another user), and ssh username@ip (to connect to an IP address).
- Every Linux system has a root user with unrestricted access.
- Learned how to use sudo to access restricted directories/files, e.g., sudo ls /root.
Download Files, packages, etc.:
- curl command to download files and packages.
- curl https://www.xyz.com/xyz.txt -O (to save the file)
- Also, Learned wget command for downloading files.
- wget https://www.xyz.com/xyz.txt -O xyz.txt (to save the file as xyz.txt)
Check the OS version:
- ls /etc/*release* to check the Linux OS version. For example, on CentOS, it will display /etc/centos-release.
- cat /etc/*release* to get more details about the OS, including version and other information.
Package Management:
- Learned how Package manager helps in installing various software in Linux.
- Learned about RPM(Red-Hat Package Management), which is used to package software into a bundle with the extension .rpm.
- Covered rpm commands to install, uninstall, and get details of the package.
- Explored how yum finds other dependent software and installs it, for e.g. required Python dependencies.
- Learned yum commands to install, remove, and find duplicate packages installed in the system.
This is all I learned briefly from the lecture on my second week of DevOps Bootcamp, also performed lab activities provided, hope all the key points which are covered is right and accurate. Feel free to provide your valuable suggestions.
Looking forward to another productive week of learning and doing Hands-on Labs provided by this course on #kodekloud.