I found some Linux files, and when I type ls -lah
, it outputs this permissions format:
... drwxr-xr-x. 2 root root ... -rw-rw-r--. 1 root root ...
I would like to know, what is the meaning of the dot (-rw-rw-r--.
) at the end of the permissions format?
Dot “.” Dot or “.” refers to the “Current User Directory.” Write out the below-given command in your terminal. $ ls -al. In the output, you can see the line ending with “.”. That dot states that this is your current directory.
It means your file has extended permissions called ACLs. You have to run getfacl <file> to see the full permissions.
It means the file has extended attributes. You can use the -@ switch to ls to view them, and xattr to modify/view them.
t will be in place of others permission and in place of execute permission. So it means that t is for execute + sticky bit. T means only sticky bit without execute permission.
From info coreutils 'ls invocation'
under Linux
GNU `ls' uses a `.' character to indicate a file with an SELinux security context, but no other alternate access method. A file with any other combination of alternate access methods is marked with a `+' character.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With