This page describes how to burn a CD-rom in Linux. For instructions on how to connect a CD/DVD burner to your system please check my storage page about CD-rom burners
To burn a CD you have to be root, or usesudo. You can either choose to create a iso file first, or burn on the fly. To create a iso to burn later, use mkisofs:
mkisofs -o home-enrique.iso -R -joliet-long -graft-points "/=/home/enrique"
man mkisofs for more info)./home/enrique in the / of the CD.
mkisofs -R -joliet-long -graft-points "/=/home/enrique" | cdrecord dev=0,0,0 --eject -v speed=4 -
To find dev, run cdrecord -scanbus. Remember to add a - to the cdrecord command so it will read from stdin.