How Recursive Permissions Work in Linux

Опубликовано: 27 Июль 2026
на канале: Delft Stack
27
0

Tired of changing file permissions one by one? 🐧🔐

In this DelftStack tutorial, we show you the power of recursive permissions in Linux using the chmod -R command. Instead of manually updating permissions for every single file inside a folder, you can apply a single command that "drills down" into every subfolder and file instantly. We walk through creating a test directory structure, applying the changes recursively, and verifying the results.

🔹 What You'll Learn in This Video:
✅ Creating nested directories using mkdir -p.
✅ Creating dummy files for testing using touch.
✅ Understanding the -R (Recursive) flag in chmod.
✅ Applying 755 permissions to a main folder and all its contents.
✅ Verifying recursive changes using ls -lR.

💻 Commands Used in This Tutorial:
• Create directory structure: mkdir -p recursive_demo/subfolder
• Create test files: touch recursive_demo/file1.txt recursive_demo/subfolder/file2.txt
• Change permissions recursively: chmod -R 755 recursive_demo
• Verify changes recursively: ls -lR recursive_demo

📌 Timestamps:
⏱ 00:00 - Introduction
⏱ 00:22 - Start of tutorial
⏱ 02:42 - Conclusion

🔧 Why Watch This Video?
If you are deploying a website or fixing server access rights, you often need to ensure an entire directory tree has the correct permissions. Doing this manually is prone to error. This recursive method is the industry standard for fast and accurate system administration.

🔥 Liked the Video? Don't Forget to Subscribe!
If you found this command line tip helpful, hit the 👍 button, share it with your fellow Linux admins, and subscribe to our channel for more terminal hacks and Ubuntu tutorials. Turn on notifications 🔔 to stay updated!