DEV Community

Ogunkola Adeola
Ogunkola Adeola

Posted on

Introduction to Linux for Beginners

🐧 What Is Linux?

💡 Linux is an operating system (OS). An operating system is the software that manages the hardware and software of a computer. It allows users to run programs, manage files, connect to the internet, and perform many other tasks.

🖥️ Linux is similar to Windows and macOS because they all help users interact with a computer.

The main difference: Linux is free and open source. Anyone can download, use, study, and improve it without paying for a license.

🌍 Today, Linux is one of the most important operating systems in the world. It powers most web servers, cloud platforms, supercomputers, and Android smartphones. Many industries also use Linux for software development, cybersecurity, networking, data science, artificial intelligence, and much more.


🚀 Why Learn Linux?

Learning Linux gives you valuable technical skills. Many employers expect IT professionals to understand Linux because it is widely used in modern technology.

🎯 Linux is useful for:

  • 📊 Data Analysis
  • ☁️ Cloud Computing
  • 💻 Software Development
  • 🔐 Cybersecurity
  • ⚙️ DevOps
  • 🌐 Network Administration
  • 🗄️ Data Engineering
  • 🤖 Artificial Intelligence & Machine Learning

💼 Many cloud services such as web hosting and databases run on Linux servers.

If you want a career in technology, learning Linux is a smart investment.


🌍 Understanding Open Source

⭐ One of the biggest advantages of Linux is that it is Open Source.

Open source means the source code is available for everyone to see.

👨‍💻 Anyone can:

  • 🔍 Study the code
  • 🛠️ Improve it
  • 🐞 Fix bugs
  • ✨ Create new features

Developers around the world work together to make Linux better.

✅ This makes Linux secure, reliable, and constantly improving.


📦 Linux Distributions (Distros)

Linux comes in different versions called distributions (distros).

Every distribution uses the Linux kernel but includes different software, desktop environments, and package managers.

🔥 Popular Linux Distributions

  • 🟠 Ubuntu
  • 🔴 Debian
  • 🔵 Fedora
  • 🌿 Linux Mint
  • ⚪ CentOS
  • ⚫ Arch Linux

🌟 Beginner Recommendation

✅ Ubuntu is the best choice for beginners because it is easy to install, easy to use, and has one of the largest support communities.


💻 The Linux Terminal

🖥️ The terminal is one of Linux's most powerful features.

Instead of clicking buttons with a mouse, users type commands into the terminal.

⚡ Although this may seem difficult at first, it becomes faster and more efficient with practice.

The terminal allows users to:

  • 📂 Manage files
  • 📥 Install software
  • ⚙️ Configure systems
  • 📈 Monitor performance
  • 🌐 Connect to remote computers
  • 🤖 Automate repetitive tasks

💡 Fun Fact: Many professional Linux users spend most of their time working inside the terminal.


📁 Understanding the Linux File System

Linux stores files in a structured directory system.

🌳 The top of the file system is called the root directory, represented by a forward slash (/).

📂 Important directories include:

  • 📁 / → Root directory (contains everything)
  • 🏠 /home → Personal user files
  • ⚙️ /etc → System configuration files
  • 🛠️ /bin → Essential system commands
  • 📜 /var → Logs and changing system data
  • 🗑️ /tmp → Temporary files

✅ Understanding these directories helps users manage files correctly.


👤 Users, Root, and Sudo

Linux uses user accounts to protect the system.

👤 Normal User

  • Performs everyday tasks.

👑 Root User

  • Has complete control over the system.
  • Can install software.
  • Modify system files.
  • Change important settings.

⚠️ Because the root user has unlimited permissions, Linux requires confirmation before administrative actions.

🔑 The sudo command allows a normal user to perform administrative tasks safely.

Example

sudo apt update
Enter fullscreen mode Exit fullscreen mode

🔒 The system asks for your password before executing the command.


📥 Package Management

Linux installs software using Package Managers.

A package manager can:

  • 📥 Download software
  • 📦 Install software
  • 🔄 Update software
  • 🗑️ Remove software

Different Linux distributions use different package managers.

🐧 Ubuntu & Debian

apt
Enter fullscreen mode Exit fullscreen mode

🔵 Fedora

dnf
Enter fullscreen mode Exit fullscreen mode

⚪ CentOS

yum
Enter fullscreen mode Exit fullscreen mode

✅ Package managers eliminate the need to manually search websites for installers.


💻 Basic Linux Commands

🎯 Learning commands is one of the most important steps for every beginner.

📍 pwd

Displays the current working directory.

pwd
Enter fullscreen mode Exit fullscreen mode

📂 ls

Lists files and folders.

ls
Enter fullscreen mode Exit fullscreen mode

📁 cd

Changes directories.

cd Documents
Enter fullscreen mode Exit fullscreen mode

📁 mkdir

Creates a new folder.

mkdir Projects
Enter fullscreen mode Exit fullscreen mode

📄 touch

Creates an empty file.

touch notes.txt
Enter fullscreen mode Exit fullscreen mode

📋 cp

Copies files.

cp notes.txt backup.txt
Enter fullscreen mode Exit fullscreen mode

🚚 mv

Moves or renames files.

mv notes.txt report.txt
Enter fullscreen mode Exit fullscreen mode

🗑️ rm

Deletes a file.

rm report.txt
Enter fullscreen mode Exit fullscreen mode

⚠️ rm -r

Deletes a folder and everything inside it.

rm -r Projects
Enter fullscreen mode Exit fullscreen mode

🚨 Warning: Deleted files cannot be easily recovered.


📖 cat

Displays file contents.

cat notes.txt
Enter fullscreen mode Exit fullscreen mode

✍️ nano

Opens the Nano text editor.

nano notes.txt
Enter fullscreen mode Exit fullscreen mode

🔄 sudo apt update

Updates package lists.

sudo apt update
Enter fullscreen mode Exit fullscreen mode

📥 sudo apt install

Installs software.

sudo apt install git
Enter fullscreen mode Exit fullscreen mode

📈 top

Shows:

  • CPU usage
  • Memory usage
  • Running processes
top
Enter fullscreen mode Exit fullscreen mode

📚 man

Displays a command's manual page.

man ls
Enter fullscreen mode Exit fullscreen mode

💡 Tip: If you don't know how a command works, use man first.


🛠️ Important Linux Tools

✍️ Text Editors

  • 📝 Nano (Beginner-friendly)
  • ⚡ Vim (Powerful)
  • 🖥️ Gedit (Graphical editor)

📦 Package Managers

  • 📥 APT → Ubuntu & Debian
  • 📥 YUM → Older CentOS
  • 📥 DNF → Fedora

🌐 Network Tools

  • 📡 Ping → Checks connectivity
  • 🌍 Curl → Transfers data
  • ⬇️ Wget → Downloads files
  • 🔐 SSH → Secure remote access

📊 System Monitoring

  • 📈 Top
  • 📉 Htop
  • 💾 df -h (Disk space)

🔄 Version Control

🌟 Git tracks changes in source code and enables collaboration.


📦 Archive Tool

Tar compresses and extracts archive files.

tar -xvf archive.tar
Enter fullscreen mode Exit fullscreen mode

💿 How to Install Linux

💽 Option 1 — Install Ubuntu Using a USB Drive

  1. 📥 Download the Ubuntu ISO.
  2. 💾 Create a bootable USB with Rufus.
  3. 🔄 Restart the computer.
  4. 💻 Boot from the USB.
  5. ✅ Follow the installation instructions.

🖥️ Option 2 — Dual Boot

Install Linux alongside Windows.

⚡ Choose either operating system when the computer starts.


💻 Option 3 — Virtual Machine

  • Install VirtualBox.
  • Create a virtual machine.
  • Install Ubuntu.

Best for beginners because it doesn't modify your existing operating system.


🚀 First Steps After Installation

Update the system:

sudo apt update
Enter fullscreen mode Exit fullscreen mode

Upgrade installed software:

sudo apt upgrade
Enter fullscreen mode Exit fullscreen mode

Install useful tools:

sudo apt install git curl vim
Enter fullscreen mode Exit fullscreen mode

🛠️ These tools help with development, networking, and file editing.


📅 Seven-Day Linux Learning Plan

📆 Day 1–2

📂 Learn file navigation.

Practice:

  • ls
  • cd
  • mkdir

📆 Day 3–4

🔐 Learn permissions and editing.

Practice:

  • chmod
  • chown
  • nano

📆 Day 5

📦 Learn package management.

Practice:

  • apt
  • sudo

🔄 Install and remove software multiple times.


📆 Day 6

🌐 Learn networking.

Practice:

  • grep
  • ssh

Learn how to search files and connect remotely.


📆 Day 7

🎯 Practice everything.

✔️ Break small things safely.

✔️ Fix problems by reading documentation and searching online.

💡 This builds strong problem-solving skills.


💡 Tips for Learning Linux

✅ Practice every day.

⌨️ Type commands instead of copying them.

📚 Read manuals using man.

🚀 Don't fear mistakes.

🖥️ Use virtual machines for practice.

🎯 Learn one command at a time.

🛠️ Build small projects to improve your skills.


🎉 Conclusion

🐧 Linux may seem difficult at first, especially for users coming from Windows. However, consistent practice makes it much easier to understand.

⚡ The terminal becomes one of the fastest and most efficient ways to manage a computer.

🌍 Millions of professionals rely on Linux because it is stable, secure, powerful, and widely used across the technology industry.

🎓 Keep practicing, stay curious, and enjoy your Linux journey! 🚀🐧

Top comments (0)