Convert a DMG file to ISO in OS X Terminal

hdiutil convert /path/imagefile.dmg -format UDTO -o /path/convertedimage.iso

0
By: rpavlick
2010-03-30 22:02:20

These Might Interest You

  • aha (https://github.com/theZiz/aha) is a program to convert ANSI escape sequence of a unix terminal to HTML code. wkhtmltoimage is a program to convert html file to image file. This one-liner will convert text file to image file, and set the image file as wallpaper by feh without temporary file.


    0
    cat foo.txt | aha --black --line-fix | wkhtmltoimage -q --minimum-font-size 18 - - | feh --bg-max -
    mk19 · 2017-02-05 07:07:41 0

  • 0
    hdiutil convert /path/imagefile.iso -format UDRW -o /path/convertedimage.dmg
    rpavlick · 2010-03-30 22:03:22 0
  • script -f /tmp/foo will place all output of the terminal, including carriage returns, to a file. This file can be tail dash-eff'ed by one or more other terminals to display the information of the main terminal. Good way to share one's screen on short notice. Note: This produces a very accurate output, but that includes depending on the size of your terminal to be the same. You can clear screens or even resize the terminal for others using this function; I use it in conjunction with the "mid" command in my list. Show Sample Output


    3
    script -f /tmp/foo; tail -f /tmp/foo
    robinsonaarond · 2011-11-22 15:16:08 2
  • (relies on 'imagemagick') Convert all .png files to .gif. This can also go the other way if you reverse the file extensions in the command, e.g.: for file in *.gif; do convert "$file" "$(basename $file .gif).png"; done If the file is named 'example1.png' it will be named 'example1.gif' when it is complete.


    4
    for file in *.png; do convert "$file" "$(basename $file .png).gif"; done
    brettalton · 2009-02-15 23:39:08 5

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: