Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com May 9 '11 at 13:15

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

3 Answers 3

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.