Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have this instruction

17 -rwxr-x-wx+ 1 john staff 2010 Jul 01 12:14 file3

What is 17, + and 1 in this instruction? Please help me ?

share|improve this question

migrated from May 9 '11 at 13:15

This question came from our site for professional and enthusiast programmers.

The "+" indicates that there is an ACL (Access Control List) entry associated with the file. Use getfacl to view the ACLs. You can also use setfacl to set them.

The number "1" is the number of hard links to that file.

share|improve this answer
yes this is output from command "ls -l" but i don't understand exactly + for what is standing? – Bob Jamaica May 9 '11 at 12:35
The + sign means that there is an ACL applied on top of the normal Unix permissions and that you need to use the getfacl command to see them. – Xenoactive May 9 '11 at 13:29

Just to complement dogbanes's answer, the output you pasted is not an instruction, but a long output of ls command. The following command should give you full documentation of the ls command, including description of its output:

info coreutils 'ls invocation'

Try also man ls

The 17 could be the disk allocation size, displayed if -s option is used.

share|improve this answer

Just to complement dogbanes's and compostus' answers, if you happen to use ZFS or NFSv4 on Solaris, the proper way to display ACLs would be to use ls -v instead of getfacl and chmod instead of setfacl.

share|improve this answer

You must log in to answer this question.