Quote:
Originally Posted by moiseszaragoza
permission type 1 = "-rw-r--r-- 1"
|
"-" means the file is a regular file
"rw-" means the file's owner can read from and write to the file
"r--" means members of the file's group can read from the file
"r--" means other users can read from the file
"1" means the file has 1 hard link
Quote:
permission type 2 = "drwxr-xr-x 2"
|
"d" means the file is a directory
"rwx" means the directory's owner can list its contents, create new files within it, and descend into it
"r-x" means members of the directory's group can list its contents and descend into it
"r-x" means other users can list the directory's contents and descend into it
"2" means the directory has 2 hard links
That's the way I understand it. If any of the above is provably wrong then please do correct me.