Day 2 : Exploring Linux Fundamentals

ยท

3 min read

Day 2 : Exploring Linux Fundamentals

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:

  1. 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.

  2. 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:

  1. Terminal Emulator:

    • A program that allows you to interact with Linux through a command-line interface (CLI).
  2. 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.

  3. Transferring Files:

    • scp ๐Ÿ“ฆ: Securely copy files between local and remote systems.

    • rsync ๐Ÿ”„: Efficiently synchronize files and directories between systems.

  4. User Management:

    • useradd ๐Ÿ‘ค: Create a new user.

    • passwd ๐Ÿ”’: Change user password.

    • userdel ๐Ÿšซ: Delete a user.

  5. Process Management:

  • ps ๐Ÿ”„: Display running processes.

  • kill ๐Ÿšซ: Terminate processes.

  • top โซ: Monitor system resource usage.

Basic Task: What is the Linux command to

  1. Add content in fruits.txt (One in each line) - Apple, Mango, Banana, Cherry, Kiwi, Orange, Guava.

  2. To Show only top three fruits from the file.

  3. 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! ๐Ÿš€๐Ÿง

ย