Linux File Ownership and Permissions
File Type in Unix
-rw-r--r-- 1 user group 12345 Mar 25 10:00 myfile.txt
drwxr-xr-x 2 user group 4096 Mar 25 10:05 mydir
crw-rw---- 1 root tty 4, 1 Mar 25 10:10 tty1
brw-rw---- 1 root disk 8, 0 Mar 25 10:15 sda
lrwxrwxrwx 1 user group 4 Mar 25 10:00 my_link.txt -> my_file.txt
2. File Permissions
Explanation
Practical Exercise
3. File Permissions
Explanation
Practical Exercise
Exercise 1: Remove Write Permission
4. Putting It All Together
5. Changing Ownership
7. Understanding Umask
Explanation
Practical Example
9. Calculating Umask
Example 1: 666 - 002
666 - 002Example 2: 777 - 002
777 - 00212. Let's explore the stat Command
stat Command1. Show Numeric Permissions
2. Show Access Time
3. Show Modification Time
4. Show Change Time
5. Show File Type
Advantages of Using stat:
stat:Last updated