Home

About Us

Advertisement

Contact Us

PRIVACY POLICY

  • Facebook
  • X
  • Instagram
  • Pinterest
  • WhatsApp
  • RSS Feed
  • TikTok
ALT

Maalavs Blog

Your Trusted Voice Across the World.

  • NEWS
  • Linux Tech Blogs
  • Windows Tech Blogs
  • VIRTUALIZATION Blogs
Search

🐧 Linux File System & Basic Commands – A Beginner’s Guide

Author: Madhan Gopalakrishnan | Published on : 12-02-2025

Linux is a powerful and flexible operating system that is widely used in servers, desktops, and embedded systems. To navigate and manage Linux efficiently, understanding its File System and Basic Commands is crucial.


📂 Linux File System Explained

The Linux file system is a structured way of storing and organizing files on disk. It follows a hierarchical directory structure with the root directory ( / ) at the top.

🔍 File System Structure

DirectoryDescription
/ (Root)The top-level directory. All other directories stem from here.
/binEssential user command binaries (like ls, cp, mv).
/bootBoot-related files (kernel, bootloader).
/devDevice files (hardware components like sda, tty).
/etcSystem configuration files.
/homeUser home directories (/home/username).
/libEssential libraries for system binaries.
/mntTemporary mount points for external devices.
/optThird-party application software.
/procVirtual file system with process information.
/rootHome directory for the root user.
/sbinSystem binaries used by the superuser.
/tmpTemporary files (deleted on reboot).
/usrUser applications and utilities.
/varVariable files like logs and cache.

📌 Note: Linux does not use drive letters like Windows (C:, D:), instead, everything is part of the root (/) hierarchy.


🎯 Basic Linux Commands

📁 File & Directory Management

CommandDescription
pwdPrint current working directory.
lsList files in the directory.
cd /pathChange directory.
mkdir new_folderCreate a new directory.
rmdir folderRemove an empty directory.
rm fileDelete a file.
rm -r folderDelete a directory and its contents.
cp file1 file2Copy a file.
mv file1 file2Move or rename a file.
touch newfileCreate an empty file.
find / -name fileSearch for a file.

📜 File Content Manipulation

CommandDescription
cat fileDisplay file contents.
tac fileDisplay file contents in reverse.
head -n 10 fileShow the first 10 lines of a file.
tail -n 10 fileShow the last 10 lines of a file.
nano fileOpen a file in the Nano editor.
vim fileOpen a file in the Vim editor.
less fileView file contents with navigation.
grep 'word' fileSearch for a word in a file.

🛠️ File Permissions & Ownership

CommandDescription
ls -lShow file permissions and details.
chmod 777 fileChange file permissions.
chown user fileChange file owner.
chgrp group fileChange file group.
umask 022Default file permission settings.

🖥️ System Monitoring Commands

CommandDescription
topShow running processes.
htopInteractive process viewer.
ps auxDisplay active processes.
df -hShow disk usage.
du -sh folderShow directory size.
free -mShow memory usage.
uptimeDisplay system uptime.
whoamiShow current user.
uname -aShow system information.
hostnameShow system hostname.

🌍 Networking Commands

CommandDescription
ping google.comTest network connection.
ifconfigShow IP configuration (deprecated).
ip aShow IP addresses.
netstat -tulnpShow active network connections.
wget URLDownload files from the web.
curl URLFetch data from a URL.

🔄 Process Management

CommandDescription
kill PIDKill a process by ID.
killall processKill all instances of a process.
pkill nameKill process by name.
bgResume a suspended process in the background.
fgResume a background process to the foreground.
jobsShow background jobs.
nohup command &Run a process immune to logout.

📌 User Management

CommandDescription
whoList logged-in users.
id usernameShow user ID and groups.
passwdChange user password.
adduser usernameAdd a new user.
deluser usernameDelete a user.
usermod -aG group userAdd a user to a group.

💡 Conclusion

Mastering Linux starts with a strong foundation in its file system and basic commands. This guide provides a solid starting point to navigate, manage files, and execute essential tasks.

Keep practicing, and soon you’ll be comfortable using Linux like a pro! 🚀


📢 Next Steps:

  • Practice these commands in a Linux terminal.
  • Explore advanced topics like shell scripting and system administration.
  • Stay curious and experiment with different Linux distributions.

Happy Learning! 🎉

Featured Articles

  • Insights into Royal Family Dynamics

    Insights into Royal Family Dynamics

    February 26, 2025
  • Over 50 Deaths Linked to ‘Unknown Disease’ in Congo

    Over 50 Deaths Linked to ‘Unknown Disease’ in Congo

    February 26, 2025
  • North Korea Accused of Major Cyber Heist

    North Korea Accused of Major Cyber Heist

    February 26, 2025
  • Manchester United Announces Job Cuts Amid Financial Restructuring

    Manchester United Announces Job Cuts Amid Financial Restructuring

    February 26, 2025
  • Shannon Sharpe Criticizes Zion Williamson’s Fitness: A Deep Dive into the Controversy

    Shannon Sharpe Criticizes Zion Williamson’s Fitness: A Deep Dive into the Controversy

    February 26, 2025

Search

Author Details

Madhan Gopalakrishnan

I am a passionate “tech blogger” with a knack for breaking down complex topics into simple insights or exploring the latest trends in AI With 5 years of experience in IT Infra implementation and maintenance, I love to share knowledge through in-depth articles and practical tips. When not writing, you can find my hobby “traveling to offbeat destinations”.

  • X
  • Instagram
  • TikTok
  • Facebook

Follow Us on

  • Facebook
  • X
  • Instagram
  • VK
  • Pinterest
  • Last.fm
  • TikTok
  • Telegram
  • WhatsApp
  • RSS Feed

Categories

  • Article (15)
  • NEWS (73)

Archives

  • February 2025 (88)

Tags

About Us

Maalavs Magazine

It is your hub for the latest news across all domains, from technology and business to travel and innovation. We bring insightful updates, expert opinions, and engaging content to keep you informed and ahead. Whether you’re a tech enthusiast, a business professional, or a curious reader, we’ve got something for you. Stay updated with Maalavs Magazine!

Latest Articles

  • Insights into Royal Family Dynamics

    Insights into Royal Family Dynamics

    February 26, 2025
  • Over 50 Deaths Linked to ‘Unknown Disease’ in Congo

    Over 50 Deaths Linked to ‘Unknown Disease’ in Congo

    February 26, 2025
  • North Korea Accused of Major Cyber Heist

    North Korea Accused of Major Cyber Heist

    February 26, 2025

Categories

  • Article (15)
  • NEWS (73)
  • Instagram
  • Facebook
  • LinkedIn
  • X
  • VK
  • TikTok

Proudly Powered by Maalavs | Maalavs Magazine

Scroll to Top