The +
after the normal permission bits indicate a special permission is in effect for the file/directory. The special permission is POSIX ACL (Access Control List).
You can set a ACL rule by using setfacl
and view the already set rule(s) by getfacl
.
Example:
% ls -l foo.sh
-rwxrwxr-x 1 foobar foobar 206 Aug 28 02:08 foo.sh
% setfacl -m u:spamegg:x foo.sh
% ls -l foo.sh
-rwxrwxr-x+ 1 foobar foobar 206 Aug 28 02:08 foo.sh
% getfacl foo.sh
# file: foo.sh
# owner: foobar
# group: foobar
user::rwx
user:spamegg:--x
group::rwx
mask::rwx
other::r-x
Check man getfacl
and man setfacl
to get more idea.
As a side note, if you see a .
inplace of +
, that's for the SELINUX context.
And the 3
after +
indicates number of hard links the file has. A hardlink is a name for the file (file's inode precisely) so number of hard links indicate number of names the file has.
In your case the entry is:
drwxr-x---+ 3 root root 4096 Sep 3 08:14 ../
It's for the parent directory of the current directory (/media/username/DATA
), so ..
points to /media/username
directory.
Now, in Linux, every directory has at least two hard links, one is for .
(current directory, link to itself) and the other is it's entry in the parent directory (name-inode mapping), this was inherited from the Unix.
You have hard link count as 3 for /media/username
, which means /media/username
has one subdirectory (default 2 plus one for the ..
entry of the subdirectory). If there were 2 subdirectories, the hard link count would be 4 due to both subdirectories mapping ..
back to the parent.
Check man ls
also.
ls -l
output explained, see http://askubuntu.com/q/710905, http://askubuntu.com/q/517229 or http://unix.stackexchange.com/q/103114 please. – Byte Commander Sep 03 '16 at 19:00