Day 10 of #90DaysOfDevOps 🚀 Linux File Permissions: The Concept That Breaks Prod If You Get It Wrong Today I went deeper into permissions — not just syntax, but how access control actually behaves in Linux. What I practiced today: → Created files using `touch`, `echo`, and `vim` → Read content with `cat`, `head`, `tail`, and `vim -R` → Made `script.sh` executable and ran `./script.sh` → Set `devops.txt` to read-only with `chmod -w` → Set `notes.txt` to `640` → Created `project/` with `755` permissions → Triggered `Permission denied` errors intentionally — and understood why Commands That Matter: ✅ `chmod +x` — add execute permission ✅ `chmod 640` — set exact file permissions ✅ `chmod -w` — remove write permission ✅ `vim -R` — open read-only ✅ `ls -l` — always verify changes 💡 Key Insight: `640` is commonly used for sensitive configs like `.env` files, DB configs, or keys. Owner gets read/write, group gets read, others get no access. 🔑 Mindset Shift: `chmod +x` modifies existing permissions. `chmod 755` sets permissions explicitly. In automation, numeric modes are safer and predictable. #90DaysOfDevOps #DevOpsKaJosh #TrainWithShubham #Linux #DevOps
Linux File Permissions Best Practices for DevOps
More Relevant Posts
-
🐧 Master Linux with This Command MindMap! Whether you're a DevOps engineer, sysadmin, or just starting your Linux journey — knowing the right commands saves hours of frustration. Here's a quick breakdown of the most used Linux commands every professional should know: 📁 File & Directory Management ls pwd cd mkdir touch cp mv rm 👁️ File Viewing & Editing cat less more nano vim gedit ⚙️ Process Management ps top kill killall pstree htop 💻 System Information uname df du free lscpu lshw lsblk 👥 User & Group Management passwd useradd userdel usermod groupadd groupdel groups id 🌐 Network Configuration & Monitoring ifconfig ip ping netstat ss traceroute ssh nc 📦 Package Management apt-get apt yum dnf rpm dpkg snap zypper Linux skills are no longer optional — they're essential in today's cloud-first, DevOps-driven world. Save this post and start practicing today! 💪 Which category do you use the most? Drop it in the comments! 👇 #Linux #DevOps #SysAdmin #CloudComputing #OpenSource #Programming #TechSkills #LinuxCommands #LearnLinux #Technology
To view or add a comment, sign in
-
-
⚡ Top Linux Mistakes That Slow Down Engineers Linux is powerful — but small mistakes can waste a lot of time. Here are common mistakes engineers make 👇 ❌ Using "rm -rf" without checking Can delete important files instantly ❌ Running commands without understanding Leads to unexpected system issues ❌ Not checking logs Logs often contain the exact problem ❌ Ignoring permissions Permission issues break scripts and services ❌ Not using tab completion Slows down navigation and increases errors ❌ Repeating commands manually Instead of using history or scripts ✔ Better Approach • Verify before executing critical commands • Read logs ("journalctl", "/var/log") • Use "history" and shortcuts • Automate repetitive tasks • Understand permissions ("chmod", "chown") 💡 Key Insight Linux is fast — but only if you use it smartly. #Linux #DevOps #SystemAdmin #CloudEngineer #LinuxTips #Productivity #SRE
To view or add a comment, sign in
-
👉 Day 5: revisit to Linux File & Directory Commands As part of my #100DaysOfDevOps journey, today I focused on one of the most important foundations in Linux — managing files and directories efficiently. These commands might look simple, but they are used every single day in real DevOps work. 💻 📁 File Management Commands 🔹 touch – Created files (single, multiple, and even bulk using patterns like linux{1..5}); touch file1 file2 file3 ; touch file{1..8} ; touch file.html file.css 🔹 rm – Learned how to delete files with and without confirmation rm filename; rm file1 file2 (multiple files); rm -f filename (force delete); rm -f file1 file2; rm -f * (all files); 🔹 rm -f – Force delete (no prompts) 🔹 Used patterns like: 🔹 *.txt → delete all text files 🔹a* → delete files starting with “a” 🔹* → delete everything in a directory ⚙️ 📂 Directory (Folder) Management 🔹 mkdir – Created single and multiple folders 🔹 Used {1..5} pattern for bulk folder creation 🔹 rmdir – Removed empty directories 🔹 rm -rf – Removed non-empty directories (powerful command ⚠️) 📋 📄 Listing Files & Understanding Output 🔹 ls – Basic listing of files/folders 🔹 ll – Detailed view with permissions, size, and ownership Learned the difference: ls = simple view ll = detailed view (very useful in troubleshooting) 💡 Key Takeaway: Mastering these basic commands is crucial because file and directory management is at the core of server handling, automation, and deployments in DevOps. Every small command is building my confidence step by step 🔥 #100DaysOfDevOps #DevOpsJourney #Linux #LinuxCommands #CloudLearning #LearningInPublic #TechSkills #DevOps
To view or add a comment, sign in
-
-
Day 7 of my DevSecOps journey 🚀 Today I focused on Linux file, user, and group management — essential skills for handling real-world server environments. 📂 File operations: Learned how to copy and move files using commands like cp and mv, and understood how data handling works during these operations. 👤 User management: Explored how to create, delete, and manage users using commands like useradd, userdel, su, and passwd. Also understood how Linux automatically creates home directories and groups for users. 👥 Group management: Learned how to create and manage groups using groupadd, groupdel, and how to add users to groups with usermod. This hands-on practice gave me a better understanding of how access control and file management work in Linux systems. Sharing a quick cheat sheet of the commands I practiced 👇 #DevSecOps #Linux #UserManagement #DevOps #CloudComputing #HandsOnLearning #LearningInPublic #TechJourney
To view or add a comment, sign in
-
-
🚀 DevOps Journey Series – Day 4: Linux File System 📂 Today we are going to take a look at the Linux File System — how Linux organizes files and directories in a structured way 💻 In Linux, everything starts from a single root directory 👉 / From there, each folder has a specific purpose 👇 📁 /home – User files and personal data ⚙️ /etc – Configuration files 📦 /var – Logs and variable data 🧠 /proc – Process & system information 🔧 /bin – Essential system commands 📂 /tmp – Temporary files 📚 /usr – User programs & applications 💾 /lib – Shared libraries for programs 🔌 /dev – Device files (hardware access) 📁 /opt – Optional/add-on software 💡 Think of it like a well-organized office 🏢 Each folder has its own responsibility, making everything easy to locate and manage 🔥 Understanding the file system helps you navigate Linux efficiently and is a key step in your DevOps journey 📅 Tomorrow: File Permissions & Ownership 🔐 Stay tuned! #DevOps #Linux #LearningInPublic #TechJourney #CloudComputing
To view or add a comment, sign in
-
-
Struggling to manage multi-container applications in #DevOps? This article by Fabian Thorns and Uirá Ribeiro shows how #DockerCompose and #PodmanCompose make testing, deployment, and maintenance easy. Read more: https://lpi.org/4nh7 Linux Professional Institute (LPI) #DevOps #containerorchestration #dockercompose #podmancompose #microservices #services #networks
To view or add a comment, sign in
-
-
Struggling to manage multi-container applications in #DevOps? This article by Fabian Thorns and Uirá Ribeiro shows how #DockerCompose and #PodmanCompose make testing, deployment, and maintenance easy. Read more: https://lpi.org/4nh7 Linux Professional Institute (LPI) #DevOps #containerorchestration #dockercompose #podmancompose #microservices #services #networks
To view or add a comment, sign in
-
-
Most developers learn Linux commands. Very few actually use them to think better while working. I recently cleaned up my messy Linux notes, and one thing became clear: It’s not about remembering commands like ls, cd, or grep. It’s about understanding how everything connects. A few things that genuinely changed how I work: • find + -exec vs xargs → same goal, completely different execution behavior • source vs bash script.sh → one changes your current environment, the other doesn’t • permissions (rwx) → not theory, but literally controlling access at system level • pipes | → small commands, but together they become workflows • .bashrc → your terminal is not fixed, you can shape it The shift was this: I stopped treating Linux as “commands to memorize” and started seeing it as a system I can control. Still learning, but now it actually feels useful in real dev work instead of just interview prep. If you're a developer and still relying only on GUI tools, try spending a few days in the terminal. It’s uncomfortable at first, but worth it. #developers #linux #backend #devtools #softwareengineering #productivity #programming #learninpublic
To view or add a comment, sign in
-
-
Day 5 of Linux basics 🐧 Final day of this 5-day refresh. It was about shell scripting — understanding how to automate tasks instead of doing everything manually. Covered: - Basics of writing scripts ("#!/bin/bash") - Variables and user input - Conditions ("if", "else") - Loops ("for", "while") - Running simple automation tasks This felt like a different level compared to previous days. Instead of just running commands, it’s about combining them to solve problems. 💡 What I realized: Even simple scripts can save a lot of time when working on repetitive tasks. Also one important thing I understood during this 5-day process — Consistency matters more than perfection. Even if we miss a day, the key is to continue the next day and not break the flow. This wraps up my Linux basics refresh. Now it’s all about practicing and applying these in real scenarios. #Linux #DevOps #CloudLearning #ShellScripting #LearningInPublic
To view or add a comment, sign in
-
-
Small changes, big improvement in my Linux workflow. I recently explored some modern alternatives to traditional Linux commands, and the difference is clear faster, simpler, and much easier to use. Here are a few that stood out: • cd → zoxide • find → fd • grep → rg (ripgrep) • cat → bat • du → dust • df → duf • top → btop • netstat → ss • man → tldr • history → atuin These tools make everyday DevOps and Linux tasks more efficient and user friendly. #Linux #DevOps #CLI #Productivity #OpenSource #Automation #SRE #CloudComputing #DeveloperTools #SysAdmin #TechTips #Engineering #Terminal #DevLife #Efficiency
To view or add a comment, sign in
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