Skip to content

Deepakgithub2023/learn-Linux-from-Scratch

Repository files navigation

While working with Linux systems, I explored how the file system is structured and organized. Here’s a quick breakdown πŸ‘‡

πŸ“ Important Directories:

/etc β†’ Configuration files /var β†’ Logs & frequently changing data /usr β†’ Installed applications & libraries /boot β†’ Boot-related files

πŸ‘€ User Directories:

/home β†’ User files /root β†’ Root user home /opt β†’ Third-party software

⚑ Temporary & System Directories:

/tmp β†’ Temporary files /proc & /sys β†’ System & kernel info /dev β†’ Device files

πŸ”— Interesting Fact: Directories like /bin, /lib, /sbin are now symbolic links to /usr/* in modern Linux systems.

πŸ’‘ Understanding this structure is essential for DevOps, System Admin, and troubleshooting tasks. linux life system

###############################################################################################################

Managing users effectively is crucial for maintaining security, access control, and system stability in Linux systems.

πŸ”Ή Key Highlights:

βœ”οΈ Understand core files: /etc/passwd, /etc/shadow, /etc/group

βœ”οΈ Create users with useradd & adduser

βœ”οΈ Manage passwords & enforce policies using passwd & chage

βœ”οΈ Modify users with usermod

βœ”οΈ Delete users securely with userdel

βœ”οΈ Handle groups & permissions efficiently

βœ”οΈ Grant sudo access for controlled privilege escalation

user-managment

##############################################################################

Every DevOps engineer and system administrator should be comfortable with Linux file management. These simple commands can make your workflow faster, cleaner, and more efficient.

πŸ”Ή Essential Commands You Should Know:

βœ”οΈ Navigate directories with cd, pwd, ls

βœ”οΈ Create & delete files/folders using mkdir, rm, rmdir

βœ”οΈ Copy & move data with cp, mv

βœ”οΈ View file content using cat, less, head, tail

βœ”οΈ Edit files with nano, vi

βœ”οΈ Write & append data using echo

πŸ’‘ These commands are the foundation of Linux, DevOps, and Cloud operations. Mastering them helps you automate tasks and manage systems efficiently.

file-system

################################################################################

πŸ”Ή Key Highlights:

βœ”οΈ Understand modes: Normal, Insert, Command

βœ”οΈ Navigate quickly using h j k l, gg, G

βœ”οΈ Edit faster with dd, yy, p, u

βœ”οΈ Search & replace like a pro using /pattern & :%s/old/new/g

βœ”οΈ Manage files easily with :w, :q, :wq

πŸ’‘ Pro Tip: Practice daily! VI is all about muscle memory. The more you use it, the faster you become.

πŸ”₯ Small shortcuts β†’ Massive productivity boost!

Vim Editor

#################################################################

πŸ” Mastering File Permissions in Linux

Understanding file permissions is crucial for maintaining security and control in any Linux system. Every file and directory is governed by three key roles:

πŸ‘€ Owner (User)

πŸ‘₯ Group

🌍 Others

Each role can have:

βœ”οΈ Read (r) – View content

βœ”οΈ Write (w) – Modify content

βœ”οΈ Execute (x) – Run files

πŸ’‘ Using commands like chmod, chown, and chgrp, you can easily manage access and ownership.

πŸš€ Key Highlights: β€’ Use chmod to change permissions (symbolic or numeric) β€’ Use chown to change file ownership β€’ Use chgrp to manage group access β€’ Understand special permissions like SetUID, SetGID, and Sticky Bit β€’ Control default permissions with umask

πŸ”Ž Example: chmod 755 filename β†’ Owner (rwx), Group (r-x), Others (r-x)

Mastering these concepts helps you build a secure, efficient, and well-managed system environment. πŸ’»

#Linux #DevOps #SystemAdministration #CloudComputing #CyberSecurity #LinuxCommands #TechSkills #Learning #ITInfrastructure #OpenSource #CareerGrowth

File Permission

####################################################################

βš™οΈ Mastering Process Management in Linux

A process is simply a running program in Linux, and managing it efficiently is key to maintaining system performance and stability. πŸš€

πŸ” What You Should Know: Every process has a unique PID (Process ID) and can be monitored, controlled, or terminated using powerful Linux commands.

πŸ’‘ Essential Commands: β€’ ps, pgrep, pidof β†’ View and find processes β€’ kill, pkill β†’ Terminate processes β€’ top, htop β†’ Monitor system performance β€’ nice, renice β†’ Manage process priority

πŸ”„ Process Control: βœ”οΈ Run in background β†’ command & βœ”οΈ Bring to foreground β†’ fg βœ”οΈ Suspend β†’ Ctrl + Z βœ”οΈ Resume β†’ bg

⚑ Pro Tips: β€’ Use kill -9 only when necessary (force kill) β€’ Adjust priorities wisely to optimize performance β€’ Monitor regularly using top or htop

πŸ› οΈ Daemon Management: Manage background services easily using systemctl (start, stop, enable services).

πŸ“Œ Mastering these commands helps you become more efficient in Linux system administration and DevOps workflows.

#Linux #DevOps #SystemAdministration #CloudComputing #TechSkills #ITInfrastructure #Automation #OpenSource #CareerGrowth #Learning #Trending #TechCommunity#Engineering

process managment

########################################################################

πŸ“Š Linux System Monitoring – Keep Your System Healthy & Optimized

Monitoring system resources is essential to ensure performance, detect issues early, and troubleshoot effectively in Linux environments. πŸš€

πŸ’‘ Key Areas to Monitor: πŸ–₯️ CPU & Memory πŸ’Ύ Disk Usage 🌐 Network Activity πŸ“„ System Logs

πŸ” Essential Commands You Should Know:

πŸ‘‰ CPU & Memory Monitoring β€’ top – Real-time monitoring β€’ htop – Interactive process viewer β€’ vmstat – System performance stats β€’ free -m – Memory usage

πŸ‘‰ Disk Monitoring β€’ df -h – Disk space usage β€’ du -sh /path – Directory size β€’ iostat – Disk I/O stats

πŸ‘‰ Network Monitoring β€’ ip a – Network interfaces β€’ ss -tulnp – Open ports & connections β€’ ping – Test connectivity β€’ traceroute – Trace network path β€’ nslookup – DNS resolution

πŸ‘‰ Log Monitoring β€’ tail -f /var/log/syslog – Live logs β€’ journalctl -f – Systemd logs β€’ dmesg | tail – Kernel logs

⚑ Why It Matters: Regular monitoring helps in identifying bottlenecks, improving performance, ensuring security, and maintaining a stable Linux environment.

Linux System Monitiring

##########################################################################3 🌐 Essential Linux Networking Commands You Should Know

Networking is a core skill for every Linux user, whether you're into DevOps, System Administration, or Cloud Engineering. πŸš€

Here are some must-know commands for managing and troubleshooting network connections:

πŸ”Ή ping google.com ➑️ Checks connectivity to a remote server and verifies network reachability.

πŸ”Ή ifconfig (deprecated) ➑️ Displays network interfaces (use ip command instead).

πŸ”Ή ip a ➑️ Shows IP addresses and details of network interfaces.

πŸ”Ή netstat -tulnp ➑️ Displays active connections and listening ports.

πŸ”Ή curl https://example.com ➑️ Fetches and displays webpage content from a URL.

πŸ”Ή wget https://example.com/file.zip ➑️ Downloads files directly from the internet.

Network commands

########################################################################

πŸ’Ύ Disk & Storage Management in Linux – Complete Guide

Efficient disk and storage management is essential for maintaining system performance, reliability, and scalability in Linux environments. πŸš€

πŸ” Key Areas You Should Know:

πŸ“Œ View Disk Information β€’ lsblk – List block devices β€’ fdisk -l – Show partitions β€’ df -h – Disk space usage β€’ du -sh /path – Directory size

πŸ“Œ Partition Management β€’ fdisk /dev/sdX – Create/manage partitions β€’ mkfs.ext4 /dev/sdX1 – Format as ext4 β€’ mkfs.xfs /dev/sdX1 – Format as XFS

πŸ“Œ Mounting & Unmounting β€’ mount /dev/sdX1 /mnt – Mount partition β€’ umount /mnt – Unmount β€’ mount -o remount,rw /mnt – Remount as read-write

πŸ“Œ LVM (Logical Volume Management) β€’ pvcreate β†’ Create physical volume β€’ vgcreate β†’ Create volume group β€’ lvcreate β†’ Create logical volume β€’ Format & mount using mkfs + mount

πŸ“Œ Swap Management β€’ mkswap – Create swap β€’ swapon – Enable swap β€’ swapoff – Disable swap

⚑ When to Use What? βœ”οΈ New disk β†’ fdisk + mkfs + mount βœ”οΈ Existing partition β†’ mount βœ”οΈ Check disks β†’ lsblk

πŸ’‘ Pro Tip: Always verify disks before making changes and take backups to avoid data loss.

Storage Managment

About

here i can push my Linux related command and its information

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors