Compare Directories in Linux

comm <(ls ~/dir-new/) <(ls ~/dir)

This works in OS x as well.

Written on November 23, 2008