Wasn't it asked before? I guess I never returned to the thread, but please keep the question in one thread, let's not create chaos
First part:
Q. How would you know if the file is the file or a directory ( everything in *NIX is a file be it a character device, block device, directory or a regular file)?
A. Easy if the permission theme starts with
- - a regular file
d - a directory
c - a charcter device
b - block device
p - named pipe
Did I forget anything?
Part two:
I don't know whether there is a difference between s and S or t and T, I assume none since I haven't notice it
s - in owner feilds means suid
s - in group fields means guid
t - is a sticky bit
As for suid and guid they are used to allow a non-owner or non-group member to interact with a file in context of owner or group respectively. A sticky bit is usually set on directories such as /tmp where different users can have access to read/write/execute and their files stay immune from each other, meaning that if user A has a file with rwx permissions set to himself in such a dir that only he may read/write and execute the file, the difference between users home directory and /tmp is that in user's home only user and members of his/her group if set are allowed to modify files if the perms set so, in /tmp any user is allowed to create files, but only owners and group preserve permission to manipulate files. The aforementioned is void for root - root has no restrictions on filesystem, this point was raised by MasterC in a recent thread and turned out that encription can keep root off user's files.
I hope it is clear, if not search here there were quite discussions about permissions and their interpretation.