For CD/DVD/BRD recording or burn, we commonly used K3B, Brasero, GnomeBaker, SimpleBurn or Xfburn, but in some situations we need use command line or more limited environment need use the console, this will try to covert that situations.
Covering in this article:

REQUIREMENTS:

apt-get install genisoimage woodim

REQUERIMIENTOS:

apt-get install genisoimage woodim

Burn files, need and image ISO firts: CREATE A ISO

Quemar discos, necesita hacer una ISO: CREAR UN ISO

An ISO file its a container for the CD or DVD or BRD discs into the computer o directories of their PC, to make it, easy, we need three things, the origin or the things/files that we will burnd in disc, target or where and a name fpr the iso image:
In server enviroments, or minimal configurations, GUI Xorg are not common, so the command line for make it are:

with -graft-points, we say that uses character move certain names by using escape "/" or a EOL inside. Recommended always use that option.

with -iso-level 2 tells iso-long names put on file, including spaces, as just look at linux. (if not used, it will be only 8.3 as was in older MSDOS) with -sysid LINUX from where came the origin, needed to burn!

with -volid the iso file will attach the name to image-iso-name of the iso image. Same as identified the isousbdrive or partition drive in any media.

with -o /home/user/image.iso say that the file was created in the home of "user" name and image iso extension. Its the detination place inside the pc.

with the -R system of the image files will be read correctly in Linux.

with -print-size will give us information resulting from the size, needed to burn after the iso.

/home/user/filestoburn at the end of this, which is a directory with the files that will be in the iso image.

The option-print-size will not make the iso image. The option-print-size does not make the iso, only calculates the size and spits, namely that the ultimate gonna be the console to the characters of the file size, or errors or anything, just the size after anything. Its commonly used to calculate if result iso will “fit” into the disc if (as will 700M for CD, 4.4G for DVD or 16G for BRD)

BURN THE ISO FILE INTO A REAL DISC (CD/DVD/BRD)

QUEMAR LA ISO EN UN DISCO REAL (CD/DVD/BRD)

Once we have the iso file with the archives that need to put into a disc, now we need to “burn” or record the iso file into a real phisical disc such a CD, a DVD or BRD, previously u must verify the size (read the last topic in previus lines)NOTE: for record a DVD the disc drive must have capacity to record DVD, of coure if record DVD can record CD also, and so same for BRD too.
Using woodin the iso conatiner file will be recorded into the phisical disc if the Disc Drive can be record disc.

with -eject him say that eject the disc to finish recording! with gracetime=2 is that you wait for 2 seconds to start writing a "track" (see below)

The dev=/dev/cdrw0 means burner device that we use (may be /dev/cdrom or /dev/hdc or dependent)

with speed=16 I say burn 16x in nomadays this was configured, today its not posible, was primordial cos lents of Playstations and Dreamcast wil not sufer damages.

with -dao with him that the disc will be written so dao, used to booteables discs! The other mode SAO permits continue to writing in same disk, either if are one-write only disc, but its not commonly permited in modern optic drives today.

with -v prints all, time what are doing either good or bad, if you know that all this will be good, remove it. Recommended for impatient users that need see were still
happened.

The dirveropts=burnfree tells it to use it to "buffer underburn" or whatever that means! burning a disc with data-rate data, it is clear in this case an image. In nomadays
this option resulting in bad Playstations or Dreamcast discs copys.

at the end of this /home/user/image.iso which is the iso image to burn, can be clear ./image.iso if running from the directory of file.iso.

with -l list with the files, use with care if they are
many, u will know how filter if u used inux ja ja ja.

with -R list only linux files.

with -d read information on the disk, this is the only interesting option.

with -i filename.iso read all this information from the file "filename.iso" if pass -R and there is no linux files, not output anything. The -d and -l options are analogous.
The -i and iso name always must be parsed.