📝 Linux for DevOps – Day 02 🔥 Continuing my Linux practice — focusing on logs & real usage 👇 --- 📖 **Read & Write Files** * `cat file` → Read * `echo "text" >> file` → Append * `echo "text" > file` → Overwrite --- 🔍 **Search Text (grep)** * `grep "Error" file` Options: * `-i` ignore case * `-n` line number * `-v` exclude * `-r` recursive --- 📊 **Check Logs** * `tail file` → Last lines * `tail -n 5 file` → Last 5 lines * `tail -f file` → Live logs Example: ```id="d4e5f6" tail -f app.log | grep "Error" ``` --- 🛠️ **What I practiced today:** ✔️ Created folders & files ✔️ Navigated directories ✔️ Managed logs ✔️ Used grep for searching --- Learning by doing — step by step 🚀 If you're also learning DevOps, let’s connect 🤝 #Linux #DevOps #LogAnalysis #ITSkills #Consistency
Mahedi Hasan’s Post
More Relevant Posts
-
If you’re learning Linux… Start with these commands. These are used daily by DevOps engineers: 📂 File & Directory ✔ ls — list files ✔ cd — change directory ✔ pwd — current path ✔ mkdir — create folder ✔ rm — delete files 📄 File Operations ✔ cp — copy ✔ mv — move/rename ✔ cat — view file ✔ nano / vim — edit 🔍 Search & Filter ✔ grep — search text ✔ find — locate files ⚙️ System & Processes ✔ ps — running processes ✔ top — system usage ✔ kill — stop process 🌐 Networking ✔ ping — check connectivity ✔ curl — API requests ✔ ss / netstat — ports 📜 Logs ✔ tail -f — live logs ✔ journalctl — system logs Simple rule: 👉 Don’t memorize 👉 Practice daily These commands = your foundation. Master them, and everything else becomes easier. Save this cheat sheet. Follow me if you want real DevOps skills (not tutorial knowledge). #Linux #DevOps #CloudComputing #CheatSheet #Engineering
To view or add a comment, sign in
-
-
🚀 Miscellaneous Linux Commands – Super User & File Permissions (Complete Guide) Ever wondered how Linux manages users, permissions, and security? 🤔 These commands are the backbone of system control and are widely used in DevOps & real-world projects 💻 Here’s what I learned 👇 👑 1. Super User (Root) & sudo 🔹 Root User The root user has full access to all files and commands in the system. 🔹 sudo (Super User Do) Temporarily gives admin privileges to perform sensitive tasks 👉 Example: sudo apt update ✔️ Runs command with admin access 📍 2. Useful Linux Commands 🔹 which → Find command location 👉 Example: which sudo ✔️ Output: /usr/bin/sudo 🔹 useradd → Create new user 👉 Example: sudo useradd rahul ✔️ Creates a new user named rahul 🔹 passwd → Set/Change password 👉 Example: sudo passwd rahul ✔️ Set password for user 🔹 su → Switch user 👉 Open new session: su rahul 👉 Run single command: su -c "ls" rahul ✔️ Execute as another user 🔐 3. File Permissions in Linux Linux provides security using ownership & permissions 👥 User Types Owner → File creator Group → Group users Others → Everyone else 🔑 Permission Types r → Read w → Write x → Execute 🔢 Permission Numbers (Important!) NumberPermission7rwx (Full access)6rw-5r-x4r--⚙️ 4. chmod → Change Permissions 👉 Syntax: chmod permissions filename 👉 Example: chmod 764 sample.txt ✔️ Owner → rwx ✔️ Group → rw- ✔️ Others → r-- 👤 5. chown → Change Ownership 🔹 Change owner: sudo chown root sample.txt 🔹 Change owner + group: sudo chown root:root sample.txt ✔️ Controls file access ✨ Why This Matters Protects sensitive data 🔐 Controls user access 👥 Essential for servers & deployments 🚀 💡 Quick Summary sudo → Admin access which → Find command path useradd → Create user passwd → Set password su → Switch user chmod → Change permissions chown → Change ownership 📌 Learning Linux step by step — building real-world skills 🔥 #Linux #CommandLine #DevOps #Programming #TechSkills #LearningJourney #Developers #100DaysOfCode
To view or add a comment, sign in
-
-
🔐 Still confused about Linux file permissions? This simple trick will make it click instantly. If you've ever seen something like chmod 755 or rwxr-xr-x and wondered what it really means - you're not alone. I used to memorize it… until I actually understood it. Here’s the simplest way to break it down: 👉 Linux permissions are split into 3 groups User (owner) Group Others 👉 Each group has 3 permissions: Read (r = 4) Write (w = 2) Execute (x = 1) 👉 Add them up to get numbers: rwx = 4+2+1 = 7 rw- = 4+2 = 6 r-x = 4+1 = 5 So when you see: chmod 765 file It means: User → 7 → rwx Group → 6 → rw- Others → 5 → r-x 💡 Pro tip: Think of it as binary → octal → symbolic 111 → 7 → rwx Once you see it this way, permissions stop being confusing and start feeling logical. This is one of those small DevOps/Linux fundamentals that saves you hours of debugging later. If you're learning Linux, don’t skip this - master it early. #Linux #DevOps #CloudComputing #AWS #Kubernetes #SystemAdministration #TechLearning #Programming #DeveloperJourney #OpenSource
To view or add a comment, sign in
-
-
🚨 “You know Linux?” Me: “Yes.” Interviewer: “Delete a directory with 1 million files… fast.” Silence. That’s when I realized — 👉 Knowing commands ≠ Understanding Linux 💡 Most people learn Linux like this: - "ls" → list files - "cd" → change directory - "rm" → delete But real-world Linux is about: ⚡ Speed ⚡ Efficiency ⚡ Problem-solving under pressure 🔥 Let’s talk REAL Linux skills (that actually matter): ✔ Delete massive directories fast rm -rf folder_name ✔ Find large files eating your disk du -ah | sort -rh | head -10 ✔ Kill a process blocking your port lsof -i :8080 kill -9 <PID> ✔ Monitor real-time logs like a pro tail -f application.log ✔ Check system performance instantly top 🧠 The truth? Linux isn’t about memorizing commands… It’s about thinking like a system. Once you understand: 👉 Processes 👉 Permissions 👉 File system 👉 Networking You stop Googling… and start solving. 📈 Want to level up FAST? Do this daily for 30 mins: 1. Break your system (intentionally 😄) 2. Fix it using terminal only 3. Learn ONE new command deeply That’s how DevOps engineers are built. 💬 Tell me in comments: What’s ONE Linux command you use daily? Let’s build a power list 👇 🔁 Save this post (you’ll need it) ❤️ Like if you learned something 👥 Follow for real DevOps content #Linux #DevOps #CloudComputing #SRE #SystemAdmin #AWS #Kubernetes #TechCareers #Learning #Programming #ITJobs #CareerGrowth #Engineers #Automation
To view or add a comment, sign in
-
-
🐧 Top Linux Commands Every DevOps Engineer Must Know 🚀 Linux is not just an OS… it’s a superpower in DevOps 💻 If you want to grow in DevOps, start mastering these commands 👇 ⚙️ Basic Commands: 📂 "ls" → List files & directories 📁 "cd" → Navigate directories 📄 "cat" → View file content 🔍 System Monitoring: 📊 "top" → Check running processes 💾 "df -h" → Disk usage 🧠 "free -m" → Memory usage 🌐 Networking: 🌍 "ping" → Check connectivity 🔎 "netstat -tulnp" → Open ports 📡 "curl" → API requests ⚡ Process Management: 🔥 "ps -ef" → Running processes ❌ "kill -9 PID" → Stop process 💡 Pro Tip: Don’t just learn commands — understand how systems work behind them. 🔥 Master Linux → Crack DevOps 💬 Which Linux command do you use daily? #Linux #DevOps #Cloud #Docker #Kubernetes #TechSkills #BETHU
To view or add a comment, sign in
-
-
💻 Master These Basic Linux Commands (Every Beginner Should Know) If you're starting your journey in Linux or moving into DevOps, these commands will become your daily tools 👇 🔹 touch Create a new empty file instantly 👉 touch file.txt 🔹 cat View or combine file content 👉 cat file.txt 🔹 head See the first 10 lines of a file (default) 👉 head file.txt See the first 2 lines 👉 head -n 2 file.txt 🔹 tail See the last 10 lines of a file 👉 tail file.txt See the last 2 lines 👉 tail -n 2 file.txt 🔥 Bonus: tail -f logs.txt (real-time log monitoring) 🔹 echo Print text or write into files 👉 echo "Hello" > file.txt 👉 echo "Myself Aman" >> file.txt 🔹 tee Display output AND save it to a file at the same time 👉 echo "Hello" | tee file.txt To append 👉 echo "Myself Aman" | tee -a file.txt 🚀 These commands are widely used in: • Debugging logs • Writing scripts • DevOps pipelines #Linux #DevOps #BeginnerFriendly #TechSkills #Learning
To view or add a comment, sign in
-
"Commands are hard to remember." "They are easily misunderstood." "Commands are confusing." I often heard this from beginners even some professionals complained about it. They say commands were hard to remember at first, but through continuous practice they were able to memorize it. I respect them! They were able to do so much practice that commands were stuck to their tips of fingers. But, two question arises. "Is there a more effective way to learn?" "Do they understand the commands?" Yes, there is a more effective way. And, even professionals fail to give full meaning and how it will behave with other commands. [Command] + [Options] + [Attributes] This is the general syntax of a command used in Linux. ✅Command tell us what action to be performed. ✅Options modify the behaviour of the command. ✅ Arguments give extra context to the command. Understand the meaning and then practicing the commands leads to higher recollection and stronger imprint of it in your mind for a long term. You will be able to learn quickly with better understanding. So focus on their meanings not just their working. #Linux #DevOps #LearnByDoing #Knowledge
To view or add a comment, sign in
-
We literally used sudo in the last lecture… And no one asked why. That’s the problem. Most people learning Linux for DevOps don’t actually learn things… They just follow along. Run this command. Copy that step. It works - so they move on. Until one day… Production says: Permission denied. And suddenly: – Commands stop working – Logs are inaccessible – Panic starts Because now it’s not about what to type It’s about who you are in the system User? sudo user? root? That difference decides everything. I’ve seen engineers who know Docker, Kubernetes, CI/CD… But still get stuck on something as basic as privileges. Not because it’s hard - But because no one explained it properly. So instead of just using sudo again… We stopped. And broke it down: – What actually happens when you run sudo – Why switching to root is risky – When to use su vs sudo in real systems Because DevOps is not about running commands. It’s about understanding control. And in Linux… control starts with privileges. If you’ve ever used sudo without thinking… You should probably watch this one. Link in comments 👇 #Linux #DevOps #CloudComputing #SystemDesign #AWS #DevOpsEngineer #LinuxCommands #TechCareers #Programming
To view or add a comment, sign in
-
-
Automate It Once. Save Time Forever. While learning Linux, I came across something simple but powerful: crontab. At first, it looked confusing… Those * * * * * symbols didn’t make much sense. But once I understood it, things clicked 👇 💡 Crontab = Task Scheduler for Linux It lets you automate repetitive tasks like: ✔️ Running scripts ✔️ Taking backups ✔️ Monitoring systems ✔️ Cleaning logs ⚙️ What surprised me most: You don’t need complex tools to start automation. Even a single crontab entry can save hours of manual work. 📌 Example that stood out: 👉 Run a script every day at 2:30 AM 30 2 * * * /home/script.sh Simple. Powerful. Practical. As I move deeper into DevOps, I’m realizing: 👉 Automation is not advanced… it starts with basics like this. If you're learning Linux or DevOps, this is definitely worth mastering. 👉 What’s the first thing you would automate using crontab? #Linux #DevOps #Automation #Crontab #LearningJourney #CloudComputing #Tech
To view or add a comment, sign in
-
-
hello everyone I completed this full course Here are a few options for a LinkedIn post based on the "Linux For DevOps In One Shot" video by TrainWithShubham. You can choose the one that best fits your style. Option 1: The "Learning Journey" (Best for showing personal growth) Headline: Why Linux is the Backbone of my DevOps Journey 🚀 I just finished an intensive session on Linux for DevOps, and it’s a game-changer! If you’re in tech, you know that Linux isn't just an OS; it's the foundation of almost everything we do in the cloud. From understanding how the internet works through fiber cables to mastering LVM (Logical Volume Management), this deep dive covered it all. Key takeaways: 🔹 Architecture: Understanding the User -> Shell -> Kernel -> Hardware flow. 🔹 Server Management: Difference between Web Servers (Nginx) and Application Servers. 🔹 Power Tools: Getting hands-on with grep, awk, and sed for log analysis. 🔹 Storage: Learning how to dynamically resize volumes without losing data using LVM. Huge shoutout to @shubhamlondhe1996 for this "One Shot" masterclass. It’s rare to find 5+ hours of pure value in one place! Check it out here: https://lnkd.in/dXE2CZ_p #DevOps #Linux #CloudComputing #TrainWithShubham #ContinuousLearning #TechCommunity Option 2: The "Technical Expertise" (Best for highlighting specific skills) Headline: Mastering the Linux Command Line for DevOps 💻 Efficiency in DevOps often comes down to how well you can navigate a Linux terminal. I’ve been brushing up on my skills with a focus on: ✅ File System Hierarchy: Knowing exactly where logs and configs live. ✅ Process Management: Monitoring and managing system resources effectively. ✅ Shell Scripting: Automating the mundane to focus on the complex. ✅ Advanced Storage: Using Physical Volumes (PV) and Volume Groups (VG) to manage scalable infrastructure. If you are looking to transition into DevOps or strengthen your Linux fundamentals, I highly recommend this comprehensive guide by @TrainWithShubham. It bridges the gap between a "beginner" and "industry-ready" professional. Watch it here: https://lnkd.in/dXE2CZ_p #LinuxAdministration #DevOpsEngineer #SRE #OpenSource #BashScripting #CareerGrowth Option 3: Short & Punchy (Best for quick engagement) Headline: 1 Video. 5 Hours. Complete Linux Mastery. 🐧 Stop scrolling and start learning! I just went through the "Linux For DevOps In One Shot" video and the depth of content is incredible. Whether it's setting up your first server or managing complex logical volumes, this video is a must-watch for every aspiring DevOps Engineer. 🛠️ Favorite part? The breakdown of awk, sed, and grep for data processing. [05:45:15] Full video link: https://lnkd.in/dXE2CZ_p Tag a friend who needs to level up their Linux skills! 👇 #DevOps #Linux #TechTutorial #LearningEveryday #TrainWithShubham
Linux For DevOps In One Shot | Complete Beginners to Advanced Linux (Hindi)
https://www.youtube.com/
To view or add a comment, sign in
More from this author
Explore related topics
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development