Question on dot symbol in ls -l output

OS : RHEL 7.9

I am currently logged in as gridapp user.
Please have a look at ls -ld output of .ssh directory below.

What is the dot (.) sign at the end in drwxr-xr-x. represent ?
I see the . sign in ls -l output of id_rsa and known_hosts files too.

gridapp@brcsprd178:~ $ pwd
/home/gridapp

gridapp@brcsprd178:~ $ ls -ld .ssh
drwxr-xr-x. 2 gridapp oinstall 39 Aug 27  2021 .ssh
gridapp@brcsprd178:~ $


gridapp@brcsprd178:~ $ ls -l .ssh
total 8
-r--------. 1 gridapp oinstall 1702 Aug 27  2021 id_rsa
-rw-r--r--. 1 gridapp oinstall  181 Aug 27  2021 known_hosts
gridapp@brcsprd178:~ $

According to the following page, the . after the other permissions means that the file has SELinux security context.

What does the dot at the end of the permissions in the output of "ls -lah" mean?

From info coreutils 'ls invocation' | grep -1 '[.+]. character' 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.

You may also see a + which indicates that POSIX ACLs are in use.

1 Like

'ls -lZ' will show the extended SELinux permissions.
'chcon' is the command to change these permissions.
See 'man chcon'.

2 Likes