This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
haas:spring2014:unix:projects:week4rev [2014/02/11 19:50] – created wedge | haas:spring2014:unix:projects:week4rev [2014/02/14 22:00] (current) – [Review Topic] wedge | ||
---|---|---|---|
Line 15: | Line 15: | ||
Instead of giving you some amazing new mind-blowing project to redefine your very life as we know it, I figured I'd instead give you a chance to take a quick breather and get in some review prior to resuming in full force. | Instead of giving you some amazing new mind-blowing project to redefine your very life as we know it, I figured I'd instead give you a chance to take a quick breather and get in some review prior to resuming in full force. | ||
+ | =====Review Topic===== | ||
+ | For this week, the main topic of review will be file permissions. We see them when running an **ls -l**, for example: | ||
+ | <cli> | ||
+ | lab46:/ | ||
+ | -rwxr-xr-x | ||
+ | -rwxr-x--- | ||
+ | lab46:/ | ||
+ | </ | ||
+ | |||
+ | Of course, the file permission part is: | ||
+ | |||
+ | < | ||
+ | -rwxr-xr-x | ||
+ | </ | ||
+ | |||
+ | We split this into 3 fields (the leftmost field is for file type) into user, group, and other. | ||
+ | |||
+ | Breakdown is as follows: | ||
+ | |||
+ | * read < | ||
+ | * write (w) is 2 | ||
+ | * execute/ | ||
+ | * nothing (-) is 0 | ||
+ | |||
+ | In any given field, we add up the values, which will result in a value within the range 0-7. | ||
+ | |||
+ | So, in our example above, broken down showing the component permissions: | ||
+ | |||
+ | |||
+ | < | ||
+ | | ||
+ | - | ||
+ | | ||
+ | </ | ||
+ | |||
+ | I wrote a tool for you to use in this project called **urev**. | ||
+ | |||
+ | Your task will be to run this and complete 96 problems, in groups of 12 at a time (so you don't blow through them all in one sitting.. there' | ||
+ | |||
+ | To use urev, basically type in the 3 octal values matching the problem displayed (in the above example, you'd type in ' | ||
+ | |||
+ | If you get all 3 correct, you'll earn a point. (Careful not to type too fast, otherwise the output may appear garbled). |