Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I think the title says it all. How to create a iso image from a folder or single files via terminal commands? Currently i am doing this via Braseros GUI, but i want to do it with a shell script.

share|improve this question
man genisoimage says it all as well. – poige Sep 15 '13 at 19:17
up vote 18 down vote accepted

Seems to be pretty straightforward to do with genisoimage, in the package with the same name on Debian:

genisoimage -o output_image.iso directory_name

There are many options to cover different cases, so you should check the man page to see what fits your particular use case.

See also

share|improve this answer
I have googled my question, but i haven't found an answer mentioning genisoimage. Thanks for the quick answer! – klingt.net Sep 15 '13 at 19:43
@klingt.net In my case, I knew there was such a command but couldn't remember its name. So I did apropos iso, found genisoimage then used the search terms "generate iso with genisoimage". – Joseph R. Sep 15 '13 at 19:46
apropos is another command that i can't remember :) – klingt.net Sep 15 '13 at 20:08
@klingt.net It seems that it behooves you to remember aprops and forget a few other commands :) – Joseph R. Sep 15 '13 at 20:13
under unix apropros is a synonym for man -k. The latter being a little easier to remember/spell ;) – Drav Sloan Sep 15 '13 at 21:37
mkisofs -lJR -o output_image.iso directory_name
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.