Use UNIX to track web sites viewed?

I'm on OSX 10.4. I was wondering if you can use UNIX terminal to track what web sites have been viewed on this Mac...

Thank you!

Try tcpdump to capture raw packets first. Don't know Mac. On other Unix, I can easily open the file captured with tools such as ethereal and then use the "http" display filter to limit display to contain only HTTP messages, etc.

tcpdump -i en0 -nlp tcp dst port 80 -w packet_file.log