File permission - Please tell me for what this number stands
I did ls -l in present working directory and found the below resule. I could not understand that 3 (makred with red color)stands for what. I searched over google and red many books, but i could not get relevant information.
root@locathost#:ls -l total 17 drwxr-xr-x 3 nana writers 80 2005-09-20 21:37 dir |
The number of directory entries that refer to the file.
Kind regards |
Quote:
http://www.go2linux.org/command-ls-file-permissions |
From the "info coreutils 'ls invocation'" command on Fedora 14:
Code:
`-l' |
The digit 3 shows the number of links to the file. In your case there are total 3 links to the file.
|
cld u pls give me the internet link to read more.
|
Hello,
You should start with the knowledge that what you see in directory entries are links themselves: not the actual files. Similar to looking up a book in the library: you get a record of where the book is, not the book itself. Thus with: drwxr-xr-x 3 nana writers 80 2005-09-20 21:37 dir For a directory on the filesystem with no sub directories, this number will be 2, and the links themselves are: dir <- this is the directory entry you are currently looking at. This link exists in the directory "enclosing" the dir entry. dir/. <-this is its link to itself, you will see in the output of ls -la The 3 tells me there is a subdirectory, where the following will be relevent: dir/<some subdir>/.. <- The dir directory probably has another directory in it. --jason |
Quote:
BTW: Use full words and sentences when communicating here. Sms/twitter text messages are not appreciated, hard to read and simply annoying. |
Quote:
|
All times are GMT -5. The time now is 04:20 PM. |