Archive for January, 2009
Open Finder for current directory from command line
I just learned how to open a Finder window directly from the command line.
open .
Yes, it’s actually that easy, and the open command is quite handy some times. This is from the open man page.
The open command opens a file (or a directory or URL), just as if you had double-clicked the
file’s icon. If no application name is specified, the default application as determined via
LaunchServices is used to open the specified files.
This means that you can actually open anything from the command line with the open command. Go ahead and try it out!
Importing a MySQL dump file
mysql -h SERVER -uUSER -p DATABASE < DUMPFILE