Filesystem Architecture Diagram
This repository contains a practical LinuxOps / DevOps lab focused on real Linux fundamentals:
- User & group management
- Permissions & ownership
- Directory and file operations
- Text processing (
sed,vi) - System inspection commands
- Cleanup & hygiene
🎯 Goal: Learn Linux by doing, not copy‑pasting.
docker run -dit \
--name ubuntu-container \
--hostname ubuntu-dev \
--restart unless-stopped \
--cpus="2" \
--memory="4g" \
--mount type=bind,source=/tmp/ubuntu-data,target=/data \
-v /var/run/docker.sock:/var/run/docker.sock \
-p 2222:22 \
-p 8080:80 \
--env TZ=Asia/Kolkata \
--env LANG=en_US.UTF-8 \
ubuntu:latest /bin/bashEnter the container:
docker exec -it ubuntu-container bash| Parameter | Description |
|---|---|
-dit |
Detached + interactive terminal |
--name ubuntu-container |
Container name |
--hostname ubuntu-dev |
Hostname inside container |
--restart unless-stopped |
Auto‑restart policy |
--cpus="2" |
CPU limit |
--memory="4g" |
Memory limit |
--mount type=bind,source=/tmp/ubuntu-data,target=/data |
Persistent storage |
-v /var/run/docker.sock:/var/run/docker.sock |
Docker access inside container (optional) |
-p 2222:22 |
SSH port mapping |
-p 8080:80 |
Web service port |
--env TZ=Asia/Kolkata |
Timezone |
--env LANG=en_US.UTF-8 |
Locale |
ubuntu:latest /bin/bash |
Ubuntu image + Bash |
- Create users:
Dev1,Dev2,Dev3 - Create groups:
devops,aws,management,sales - Change primary group of
Dev2,Dev3→devops - Add
awsas secondary group toDev1 - Create directory & file structure (as per diagram)
- Change group of
/dir1,/dir8/dir9,/f2→devops - Change ownership of
/dir1,/dir8/dir9,/f2→Dev1
- Create users:
Dev4,Dev5 - Create groups:
app,database
- root: Create file
/f3 - root: Rename
/f2→/f4 - Dev4: Move
/dir1/f1→/dir2/dir1/dir2
- root: Create
/home/Dev2/dir1 - root: From
/dir2/dir1/dir2/dir10, create/opt/dir12/dir10/f1using relative path - root: Delete
/dir4recursively - root: Delete all child items under
/opt/dir12 - Dev1: Move
/opt/dir12/dir10/f1→/home/Dev1 - root: Write text to
/f3
- root: Create
/dir1/f2 - root: Delete
/dir6 - root: Delete
/dir8 - root: Replace
DevOps→devopsin/f3 - root: Using
vi, copy line 1 and paste it 10 times - root: Replace
Engineer→engineer - root: Delete
/f3
- Search file
f3(absolute paths) - Count files in
/ - Print last line of
/etc/passwd
- Verify filesystem usage using
df -h - Create
/data/f1
⚠️ Docker Note:mount/umountare restricted in standard Docker containers.
- Delete
/dir1,/dir2,/dir3,/dir5,/dir7 - Delete
/f1,/f4 - Delete
/opt/dir12
- Delete users:
Dev1,Dev2,Dev3,Dev4,Dev5 - Delete groups:
app,aws,database,devops,management,sales - Remove remaining home directories (if any)
| Feature | Docker | VM / EC2 |
|---|---|---|
| Users & groups | ✅ | ✅ |
| Files & permissions | ✅ | ✅ |
| Text processing | ✅ | ✅ |
| mount / umount | ❌ | ✅ |
- GitHub: https://github.com/piyush-pooh
- LinkedIn: https://www.linkedin.com/in/piyush-sharma-5250a0291/
- Twitter (X): https://x.com/Piyush_poooh
If this lab helped you understand Linux the right way, please ⭐ star the repository and share it 🚀
LinuxOps mindset: Don’t fight Linux. Understand it.

