/kb

personal knowledgebase

Archive for January, 2009

Open Finder for current directory from command line

with 3 comments

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!

Written by hgrimelid

January 9th, 2009 at 9:41 am

Posted in Shell

Tagged with , ,

Importing a MySQL dump file

with one comment

mysql -h SERVER -uUSER -p DATABASE < DUMPFILE

Written by hgrimelid

January 6th, 2009 at 7:58 pm

Posted in Server

Tagged with , ,