CSE271 Lab 9: Files and Directories (ls and touch)

Announcements

Collaborative Programming

touch

Extending ls

Task 2: Now we can extend ls to work like ls -l works. The version of ls we built in class is here. This lab will help walk you through the necessary steps to extend it. Our goal, at the end, is to have an equivalent to ls -l.

How do we add -l to our ls?

How does stat() work?

How well should your ls -l work?

Where are type and permissions stored?

Bits and subfields

UIDs and GIDs

Converting UIDs


Last revised: 19 March 2013, Prof. Davison.