check the permission on the file in shell script

ls-l
====


erp@erp-OptiPlex-330:~$ ls -l
total 48
drwxr-xr-x 2 erp erp 4096 Aug  5 13:06 Desktop
drwxr-xr-x 3 erp erp 4096 Aug  5 12:06 Documents
drwxr-xr-x 2 erp erp 4096 Aug  4 14:47 Downloads
drwxrwxr-x 3 erp erp 4096 Aug  6 13:32 ecommerce
-rw-r--r-- 1 erp erp 8980 Aug  4 14:34 examples.desktop
drwxr-xr-x 2 erp erp 4096 Aug  4 14:47 Music
drwxr-xr-x 2 erp erp 4096 Aug  4 14:47 Pictures
drwxr-xr-x 2 erp erp 4096 Aug  4 14:47 Public
drwxr-xr-x 2 erp erp 4096 Aug  4 14:47 Templates
drwxr-xr-x 2 erp erp 4096 Aug  4 14:





explaination
==========
the user erp has read and write permission on this files
the group erp has read and write perimssion on this file
  

No comments:

Post a Comment