Louisville, KY
Greg is a retired neurologist in Louisville, Kentucky, with a long-standing interest in computers and programming, beginning with Fortran IV in the 1960s. When Linux and open source software came along, it kindled a commitment to learning more, and eventually contributing. He is a member of the Scribus Team.
Authored Comments
Numbering involves assigning 4 to r, 2 to w, and 1 to x. So a file such as the one above could be indicated for
chmod
as 764. If I typedls -l
would then show it as-rw-rw-r-- example.txt
Also note that the
mv
command works for directories too.I generally prefer to use the numbering system for the
chmod
command. This way I can precisely set permissions with one step. If you list files withls -l
, they will show up likeThe first dash shows this is a file, not a directory (you would see a 'd' instead if it were a directory). After that you have 3 groups of rwx permissions (read, write, execute). The first 3 pertain to the owner of the file, the second 3 to his group, and the third to any user.