π§ Day 3 of My DevSecOps Journey

Linux Basics, Architecture, AWS, Users, Permissions & SSH (Beginner-Friendly Guide)
Today was a deep dive into the world of Linux, a skill every DevOps/DevSecOps engineer must master.
I explored Linux history, architecture, authentication, AWS security groups, file permissions, users, groups, and even connecting VM-to-VM using SSH keys.
Hereβs everything I learned β explained simply, visually, and with emojis π
π 1οΈβ£ Introduction to Linux β How It All Started
Unix was originally a closed-source operating system.
Linux was created as an open-source alternative, built on Unix concepts.
Over time, Linux grew into many distributions (flavors) such as:
π¦ Ubuntu
π© Debian
π΄ RedHat
π’ CentOS
π§ Amazon EC2 Linux
Best practice: Always use LTS (Long-Term Support) versions for stability & security.
π§± 2οΈβ£ Linux Architecture β Visual & Easy Explanation
Linux is built in layers, just like an organization:
π§βπ» User Applications
Apps we interact with: browsers, Docker, Jenkins, etc.
βοΈ System Utilities
Basic commands & tools:ls, cp, mv, mkdir, etc.
π System Libraries
Pre-written code that applications use to perform tasks.
π§ Kernel
The βheartβ of Linux β manages:
Memory
Processes
File systems
Communication between software & hardware
π½ Hardware Layer
CPU, RAM, Storage, Network Cards, etc.
Simple visual:
------------------------
| User Applications |
------------------------
| System Utilities |
------------------------
| System Libraries |
------------------------
| Kernel |
------------------------
| Hardware |
------------------------
πΏ 3οΈβ£ Setting Up Ubuntu & Authentication Methods
Linux supports two main authentication types:
π 1. Username + Password
Simple but less secure.
ποΈ 2. SSH Key Pair (Recommended)
More secure
No password required
Safer for production environments
Also learned how certain ports (like 8080, 3200 etc.) need to be open for remote access.
π₯ 4οΈβ£ Understanding Security Groups & Networking
Security Groups (SGs) work like firewalls:
π₯ Inbound Rules
Define what traffic can enter the machine (e.g., SSH, HTTP).
π€ Outbound Rules
Define what traffic can leave the machine.
π Why VPN is needed sometimes?
Some internal sites are only accessible through a VPN.
Your laptop β VPN β Secure Network β VM
Without VPN, access is denied because the VM trusts only specific IP ranges or ports.
π§ AWS Hands-On
I learned how to:
Select an AMI
Configure an instance
Open ports
Launch an EC2 Linux server



π 5οΈβ£ Important Linux Folders Explained
I explored key directories:
| Folder | Meaning |
/root | Superuser home directory |
/bin | Essential commands |
/sbin | System-level commands |
/boot | Bootloader files |
/dev | Device files |
/etc | Configuration files |
/home | User home folders |
/lib / /lib64 | Libraries |
/media / /mnt | Mounted drives |
/opt | Optional software |
/tmp | Temporary files |
/var | Logs, caches, dynamic data |
π₯ 6οΈβ£ User & Group Management in Linux
β Root User
The superuser β full permissions.
π€ Regular Users
Restricted access β must use sudo for admin tasks.
π Key Learnings:
Create users
Create groups
Add/remove users from groups
Switch users (
su)Change passwords
Lock/unlock accounts
Delete users safely
Use multiple SSH keys for multiple user access
Linux commands I practiced:
ls,cd,cp,mv,mkdir,touch,catuseradd,groupadd,usermodpasswd,deluser,gpasswd
π 7οΈβ£ File & Folder Permissions
Linux permissions follow this pattern:
r = read
w = write
x = execute
Used chmod to:
Add/remove permissions
Manage file execution
Secure sensitive files
Example:
chmod 755 file.sh
chmod u+x script.sh
π 8οΈβ£ SSH Key Pair Generation & VM-to-VM Communication
Generated SSH keys using:
ssh-keygen -t rsa -b 4096 -C "practise-keys"
Then learned how to:
Copy public key to another VM
Connect two VMs using SSH
Login between servers without passwords
This was a great hands-on practice for real infrastructure setups.

π― Day 3 Takeaway
Linux is at the core of DevOps & DevSecOps, and today, it helped me build a strong foundation in:
βοΈ Architecture
βοΈ Security
βοΈ Networking
βοΈ AWS concepts
βοΈ Users & Permissions
βοΈ SSH & Authentication
Iβll be sharing my Day 4 learnings tomorrow β Stay Tuned π«‘




