Day 6 โ Exploring Linux Basic


On Day 6 of my DevOps journey, I explored the Linux terminal hands-on. I used essential commands to navigate the system, read files, and understand the structure of Linux.
๐ป Basic Commands I Practiced
Here are the commands I used today and what they do:
Command | Purpose |
whoami | Shows the current logged-in user |
pwd | Prints the current working directory |
ls | Lists files and folders |
cd | Changes directory |
clear | Clears the terminal screen |
cat /etc/os-release | Displays OS info |
sudo -i | Switches to the root user |
exit | Exits a session (root or normal) |
๐ Navigating the File System
I explored various system directories using cd
and ls
:
/bin
,/sbin
โ essential binaries and system tools/etc
โ system configuration files (likehostname
)/boot
,/boot/grub2
โ bootloader files/tmp
โ temporary files/proc
โ virtual system info (processes, uptime)
๐ Viewing System Info
Some useful commands I tried for system insight:
uptime
โ Shows how long the system has been runningcat /proc/uptime
โ Same info but in raw formatfree -m
โ Displays memory usage in MB
๐ง What I Learned
Linux has a clear directory hierarchy, and each folder has a specific purpose.
Commands like
cd
,ls
, andpwd
make navigating easy./proc
is a virtual filesystem that shows real-time system data.You can switch to root (
sudo -i
) for full control, but use it cautiously.
๐ Wrapping Up
Today was all about exploring and understanding how Linux is structured and how to move around it. These basics are powerful and essential for any DevOps or Linux user.
Tomorrow, Iโll dive into file management, permissions, and editing files from the terminal.
Subscribe to my newsletter
Read articles from Shaharyar Shakir directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
