DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
With time you can list the resources that a certain command takes up. For example,
time dd if=/dev/random of=/dev/null count=10
will output the number of resources taken up by moving 10 blocks of random data to memory.