I can never remember what the conversion is from something like rw-r--r-- to 644. Is there a simple web based converter between the 2?
|
|
|||
|
|
|||||||||||||||||||
|
|
Why do you need octal number in the first place? I always use:
ugo(a) is easy to remember. However you can confuse o:=owner? o:=other? but what would be u, if o=owner? u:=user, therefore o=other. Some comands like numerical permissions only. Okay, it's not hard to calculate, if you remember the two sequences: ugo + rwx.
Yes, very artificial. When it comes to s and S I have to consult the manual. Maybe google next time. :) |
|||
|
|
|
I have this little alias that you can put in your .bashrc (or equivalent). DISCLAIMER: I am not the author of the script, and I'm not sure who wrote it... but props to him/her for doing this.
|
|||
|
|
|
Octal is used for permissions because it's an easy conversion. Each group of
|
|||
|
|

stat -c... – fromnaboo Apr 7 at 16:54