Introduction:
Welcome to the exciting world of Linux! ๐ In this blog post, we'll embark on a journey through the fundamental aspects of Linux for non-IT individuals or beginners interested in DevOps. Whether you're an aspiring developer, system administrator, or simply curious about the Linux operating system, this guide will provide you with a solid foundation to kickstart our #90DaysOfDevOps challenge. Let's dive in! ๐ช
๐ Understanding Linux:
What is Linux?
Linux is an open-source operating system widely used in the tech industry.
It offers a robust and secure platform for running servers, desktops, and embedded devices.
Linux powers a vast majority of the internet, including popular websites, cloud infrastructure, and supercomputers.
Linux Distributions:
Ubuntu ๐: A user-friendly distribution suitable for beginners with excellent community support.
CentOS ๐ฏ: Focused on stability and widely used in server environments.
Fedora ๐ฉ: Emphasizes cutting-edge features and is great for developers.
๐ป Command Line Basics:
Terminal Emulator:
- A program that allows you to interact with Linux through a command-line interface (CLI).
Essential Commands:
ls
๐: List directory contents.cd
๐: Change directory.mkdir
๐: Create a new directory.rm
๐๏ธ: Remove files or directories.cp
๐: Copy files or directories.mv
: Move or rename files and directories.cat
: Concatenate and display file contents.head
: Display the beginning of a file.tail
: Display the end of a file.touch
: Create an empty file or update timestamps.nano
: Open a simple text editor.grep
: Search for specific patterns in files.chmod
: Change file permissions.chown
: Change file ownership.
Transferring Files:
scp
๐ฆ: Securely copy files between local and remote systems.rsync
๐: Efficiently synchronize files and directories between systems.
User Management:
useradd
๐ค: Create a new user.passwd
๐: Change user password.userdel
๐ซ: Delete a user.
Process Management:
ps
๐: Display running processes.kill
๐ซ: Terminate processes.top
โซ: Monitor system resource usage.
Basic Task: What is the Linux command to
Add content in fruits.txt (One in each line) - Apple, Mango, Banana, Cherry, Kiwi, Orange, Guava.
To Show only top three fruits from the file.
To Show only bottom three fruits from the file.
Conclusion:
By completing the Linux fundamentals, you've acquired a foundational understanding of the operating system that powers much of the modern tech landscape. You've learned about essential commands, transferring files, user management and process management. Armed with this knowledge, you're now equipped to explore the vast world of Linux and its applications in various domains, including DevOps. Remember to keep practicing and building upon this foundation as you continue your Linux and DevOps journey. Happy exploring! ๐๐ง