0
0
Linux CLIscripting~15 mins

Numeric permission mode (755, 644) in Linux CLI - Mini Project: Build & Apply

Choose your learning style9 modes available
Understanding Numeric Permission Modes (755, 644) in Linux
📖 Scenario: You are managing files on a Linux server. You need to set correct permissions so that files and folders are secure but accessible as needed.Numeric permission modes like 755 and 644 are common ways to set these permissions quickly.
🎯 Goal: Learn how to create files and directories, then set their permissions using numeric modes 755 and 644.You will practice creating a directory and a file, then apply these numeric permissions and check the results.
📋 What You'll Learn
Create a directory named project
Create a file named readme.txt inside the project directory
Set the directory permission to numeric mode 755
Set the file permission to numeric mode 644
Use ls -l to display the permissions and verify
💡 Why This Matters
🌍 Real World
Setting correct file and directory permissions is essential for security and proper access control on Linux servers and systems.
💼 Career
System administrators, DevOps engineers, and developers often need to manage permissions to protect data and ensure applications run correctly.
Progress0 / 4 steps
1
Create the directory project
Type the command to create a directory named project in your current folder.
Linux CLI
Need a hint?

Use the mkdir command followed by the directory name.

2
Create the file readme.txt inside project
Type the command to create an empty file named readme.txt inside the project directory.
Linux CLI
Need a hint?

Use the touch command with the path project/readme.txt.

3
Set the directory permission to numeric mode 755
Type the command to set the permission of the project directory to numeric mode 755.
Linux CLI
Need a hint?

Use the chmod command with 755 and the directory name.

4
Set the file permission to numeric mode 644 and verify
Type the commands to set the permission of the file project/readme.txt to numeric mode 644 and then list the details of the project directory using ls -l project to verify the permissions.
Linux CLI
Need a hint?

Use chmod 644 project/readme.txt to set file permission.

Then use ls -l project to see the permissions.