[root@localhost linuxtechnotes]# ls -lrt
total 24
-rw-rw-r--. 1 linuxtechnotes linuxtechnotes 0 Dec 19 21:38 linuxtechnotes
-rw-rw-r--. 1 linuxtechnotes linuxtechnotes 0 Dec 19 21:43 linux1
-rw-rw-r--. 1 linuxtechnotes linuxtechnotes 0 Dec 19 21:43 linux3
-rw-rw-r--. 1 linuxtechnotes linuxtechnotes 0 Dec 19 21:43 linux2
-rw-rw-r--. 1 linuxtechnotes linuxtechnotes 37 Dec 19 21:45 file1
-rw-rw-r--. 1 linuxtechnotes linuxtechnotes 52 Dec 19 21:47 file2
-rw-r--r--. 1 linuxtechnotes linuxtechnotes 19 Dec 21 19:28 redhat
drwxr-xr-x. 2 linuxtechnotes linuxtechnotes 4096 Dec 21 21:44 tech
drwxr-xr-x. 3 linuxtechnotes linuxtechnotes 4096 Dec 21 21:44 data
drwxr-xr-x. 2 linuxtechnotes linuxtechnotes 4096 Dec 21 21:50 linuxtechnote
[root@localhost linuxtechnotes]#
From the above list you can see files start with 'd' means DIRECTORY
'-' means FILE
So from the above example tech,data,linuxtechnote .... are directories and linux1,linux2,linux3 and linuxtechnotes are files .
TO CHECK FILE PERMISSOINS USE ls -l or ls -ld
TO CHECK DIRECTORY PERMISSONS USE ls -ld << you cant check direcotry permissons with ls -l >>
No comments:
Post a Comment