Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

innvaderr

macrumors newbie
Original poster
Sep 17, 2008
5
0
can someone tell me the command to open Disk Utility through terminal?
I tried the following with no success;
open -a disk utility
open /Applications/Utilities/Disk Utility.app

thanks:confused::apple:
 
can someone tell me the command to open Disk Utility through terminal?
I tried the following with no success;
open -a disk utility
open /Applications/Utilities/Disk Utility.app

thanks:confused::apple:

A .app is not a file. It's a directory that appears to be a file in the finder. Which is why you can't open it via that method.

You don't need to use the open utility: just run the executable within the .app container:

Code:
/Applications/Utilities/Disk\ Utility.app/Contents/MacOS/Disk\ Utility

Not the \ escapes for the spaces in the name are important.

Edit to add: the spaces are the reason your second open command doesn't work. The space ends the name of the application there so it's trying to open "/Applications/Utilities/Disk" which doesn't exist. You can make the open command work like this:

Code:
open "/Applications/Utilities/Disk Utility.app"

or

Code:
open /Applications/Utilities/Disk\ Utility.app
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.