Command line "open DIRNAME" fails (but "open FILENAME" is OK)
Solution 1:
from man open
:
-R Reveals the file(s) in the Finder instead of opening them.
So try open -R '/home/fred'
(Technically you don't need the single-quotes around /home/fred
unless there are spaces or special characters, but it doesn't hurt to use them anyway.)