Chmod Cheatsheet

If you’re like me, either you or someone you work with forgets the details of octal notation for *nix file systems from time to time. I know I space out on it occasionally.

While playing around with “protaculous” a little bit on my BART commutes, I whipped up a little octal notation interactive cheatsheet. It seemed like it might be useful to others, so I put it up at http://per.ms.

Got a code that you can’t remember the meaning of? Just click the numbers below the checkbox grid on http://per.ms, and the correct corresponding checkboxes will be checked for you as a reminder.

Hope you find it useful on those days when your memory is a little hazy.

Technorati , ,


3 Responses to “Chmod Cheatsheet”  

Hi!

I think the easier way is to do e.g. “chmod g x” which adds the executeable flag for the group or e.g. “o-rwx” which removes all permissions for other users.

Regards,
Toby

To each his own, I guess. :) I’ve never had luck memorizing the letter-based incantations for chmod. “o-rwx” isn’t much more intuitive than 700.

It’s quite simple. You’ve got three digits: owner, group and public. Set them all at 0. Add 4 to grant reads. Add 2 to grant writes. Add 1 to grant execution.

Read, write, execute = 4 + 2 + 1 = 7
Read, write = 4 + 2 = 6
Read, execute = 4 + 1 = 5
Read = 4



What is Killersoft?

Killersoft is a small web development firm located in Fremont, California, founded by web developer and author Clay Loveless.