Linux Series — #1: Getting Started with Linux: A Beginner’s Guide

Swetha Dulgunti
4 min readSep 12, 2024

--

Linux is one of the most popular operating systems for servers, development environments, and even personal computers. It’s known for its stability, security, and flexibility, making it a favorite among developers and IT professionals. However, for beginners, diving into the world of Linux can seem daunting. This guide will help you get started with Linux, covering everything from choosing a distribution to learning basic commands.

1. What is Linux?

Linux is an open-source operating system, its source code is freely available for anyone to view, modify, and distribute. Unlike Windows or macOS, Linux is built on the Unix philosophy, which emphasizes simplicity, modularity, and security. The core of Linux is the kernel, which interacts with the hardware, while different distributions (or “distros”) provide various tools and utilities on top of this kernel to form a complete operating system.

2. Choosing the Right Linux Distribution

There are many Linux distributions, each tailored to different user needs. Here are some popular options:

  • Ubuntu: Great for beginners, with a large community and plenty of documentation. It’s user-friendly and comes with a comprehensive set of pre-installed software.
  • Linux Mint: Another beginner-friendly option based on Ubuntu, but with a more traditional desktop experience that’s closer to Windows.
  • Fedora: Known for having the latest software, Fedora is a good choice for developers and those who like cutting-edge technology.
  • CentOS/RHEL: Ideal for server environments, CentOS is a free version of Red Hat Enterprise Linux (RHEL), which is a stable and secure option for running servers.
  • Debian: A highly stable and secure distribution, great for both desktops and servers, with a vast software repository.

Choose a distribution that suits your needs and comfort level. For most beginners, Ubuntu or Linux Mint are excellent starting points due to their ease of use and strong community support.

3. Installing Linux

Step 1: Download the ISO File

Once you’ve chosen a distribution, visit the official website and download the ISO file. This file is an image of the operating system that you’ll use to create a bootable USB drive.

Step 2: Create a Bootable USB Drive

To create a bootable USB drive, you’ll need a tool like Rufus (Windows), Balena Etcher (cross-platform), or the Startup Disk Creator (Linux). Here’s how:

1. Insert a USB drive (at least 4GB).
2. Open the tool and select the downloaded ISO file.
3. Choose the USB drive and click “Start” or “Flash”.

Step 3: Boot from the USB Drive

Restart your computer and boot from the USB drive. You may need to press a key like F12 or Esc during startup to access the boot menu and select the USB drive.

Step 4: Follow the Installation Instructions

Most Linux distributions offer a “Live” environment, allowing you to try the OS before installing it. Once you’re ready, click the “Install” icon on the desktop and follow the on-screen instructions:

  • Choose your language, keyboard layout, and time zone.
  • Decide on the installation type (e.g., dual-boot with Windows or erase the entire disk).
  • Create a user account and set a password.

After the installation completes, restart your computer and remove the USB drive. You should now boot into your new Linux environment!

4. Understanding the Linux File System

Unlike Windows, which uses drive letters (C:, D:, etc.), Linux has a unified file system. Everything in Linux is represented as a file, and all files are organized into a tree-like structure with the root directory (`/`) at the top. Here are some essential directories:

  • /home: Contains personal files and directories for each user.
  • /etc: Contains configuration files for the system.
  • /var: Stores variable data like logs, databases, and emails.
  • /usr: Contains user-installed software and libraries.
  • /bin and /sbin: Store essential system binaries (programs).

5. Basic Linux Commands

Now that you have Linux installed, it’s time to learn some basic commands. Open the terminal (press `Ctrl + Alt + T`), and try these out:

  • ls: Lists files and directories in the current directory.
    ls -l
    The `-l` flag provides a detailed view.
  • cd: Changes the directory.
    cd /home/yourusername
    This command navigates to your home directory.
  • pwd: Displays the current directory path.
    pwd
    Useful for knowing where you are in the file system.
  • mkdir: Creates a new directory.
    mkdir new_directory
  • rm: Deletes a file or directory.
    rm file.txt
    Use ‘rm -r directory_name’ to delete a directory and its contents.
  • sudo: Executes a command with superuser (admin) privileges.
    sudo apt update
    Use this for installing software or making system-wide changes.
  • man: Displays the manual for a command.
    man ls
    Learn more about the `ls` command and its options.

6. Installing Software

Installing software on Linux varies depending on the distribution. For distributions like Ubuntu or Debian, you can use the `apt` package manager:

sudo apt update
sudo apt install package_name

For Red Hat-based distributions like CentOS or Fedora, use `yum` or `dnf`:

sudo dnf install package_name

7. Exploring Linux Desktop Environments

Linux offers a variety of desktop environments, each with its unique look and feel. Some popular options include:

  • GNOME: The default desktop environment for Ubuntu, known for its simplicity and elegance.
  • KDE Plasma: A powerful and highly customizable desktop environment.
  • Xfce: Lightweight and fast, ideal for older hardware or those who prefer minimalism.

You can switch between desktop environments or try different ones to see which suits your workflow best.

8. Next Steps: Learning and Exploring

Congratulations! You’ve taken your first steps into the world of Linux. Here are some suggestions for further exploration:

  • Learn More Commands: The terminal is powerful; the more commands you know, the more control you have over your system.
  • Customize Your Environment: Linux is incredibly flexible. Experiment with different themes, window managers, and desktop environments.
  • Explore Linux Applications: Discover open-source alternatives to popular applications you use on other operating systems.
  • Join the Community: The Linux community is vast and welcoming. Participate in forums, follow Linux blogs, or contribute to open-source projects.

By starting with Linux, you’re joining a global community of users who value freedom, security, and innovation. Enjoy your journey into the world of open-source software!

--

--

No responses yet