how to check file permissions in linux code example
Example 1: ls file permissions linux
ls –l [file_name]
ls –l test.txt
Example 2: linux How do you find files that have specific permissions?
$ find -perm mode
Example 3: how to see permissions for file in linux
ls –l [file_name]
Example 4: check file permissions linux
$ ls -la /root
total 24
drwxr-xr-x 2 root root 4096 2009-12-16 01:10 .
drwxr-xr-x 23 root root 4096 2010-02-18 10:14 ..
-rw------- 1 root root 123 2010-01-21 15:49 .bash_history
-rw-r--r-- 1 root root 2227 2007-10-20 11:51 .bashrc
-rw-r--r-- 1 root root 141 2007-10-20 11:51 .profile
-rw------- 1 root root 868 2009-12-16 00:47 .viminfo