Day 2 - Learning Linux Basics 🐧💻🔧
Discover Linux! 🐧 Learn Its History 📜, Top Versions 🌟, and Basic Commands 💻!
Welcome to Day 2 of our DevOps journey! 🚀 Today, we’re going to explore Linux Basics—an important step for anyone interested in becoming a DevOps engineer. 🐧 Linux is like the operating system that many computers and servers use, and knowing how to work with it is really helpful. In this blog, we’ll cover simple commands, how to manage files, and how to navigate around the system. 🌐 Whether you’re new to this or just want to learn more, we’ll make it easy and fun! Let’s dive in and discover the world of Linux together! 💻✨
What is Linux? 🐧
Linux is an open-source operating system based on UNIX. It’s known for its stability, security, and flexibility, making it a popular choice for servers, desktops, and embedded systems. Unlike proprietary operating systems, Linux allows anyone to view, modify, and distribute its source code, fostering a collaborative community of developers and users.
A Brief History of Linux 📜
Linux was created in 1991 by Finnish student Linus Torvalds, who shared the first version (0.01) with the public, inviting collaboration. By 1992, it became officially open-source, allowing anyone to modify and improve it. The introduction of user-friendly distributions like Slackware and Debian in 1993 made Linux more accessible. In the 2000s, it gained traction in servers and supercomputers, with major companies like IBM and Google adopting it. Today, Linux powers everything from smartphones (like Android) to cloud services, making it a cornerstone of the tech world! 🌐✨
Top Linux distributions:-
Ubuntu
CentOS
Red Hat Enterprise Linux (RHEL)
Debian
Fedora
Alpine Linux
Arch Linux
SUSE Linux Enterprise Server (SLES)
Basic Linux commands with simple explanations:
ls
Lists files and directories in the current folder.
Example: ls shows everything in your current directory.cd
Changes the current directory.
Example: cd Documents takes you to the Documents folder.pwd
Prints the current working directory (where you are in the file system).
Example: Just type pwd to see your current location.mkdir
Creates a new directory (folder).
Example: mkdir new_folder creates a folder named "new_folder."rmdir
Removes an empty directory.
Example: rmdir old_folder deletes the folder named "old_folder" if it's empty.rm
Deletes files or directories.
Example: rm file.txt removes "file.txt" from the current directory.cp
Copies files or directories.
Example: cp file.txt backup.txt copies "file.txt" to "backup.txt."mv
Moves or renames files or directories.
Example: mv oldname.txt newname.txt renames the file.touch
Creates an empty file or updates the timestamp of an existing file.
Example: touch newfile.txt creates a new empty file.cat
Displays the contents of a file.
Example: cat file.txt shows what’s inside "file.txt."echo
Prints text to the terminal.
Example: echo Hello, World! displays "Hello, World!" on the screen.man
Displays the manual for a command.
Example: man ls shows detailed information about the ls command.
And that’s a wrap on our journey into Linux basics! 🐧✨ We hope you’re feeling more confident about navigating and managing files in the Linux environment. Remember, the more you practice, the easier it gets!
But don’t stop here! 🚀 Join us in our next blog, where we’ll unlock essential Linux commands that will supercharge your skills and help you work like a pro. Get ready to dive deeper and level up your Linux game! Happy learning, and see you soon! 💻🌟