For bash script:
here it is if you want to create a script:
1. Create a text file named "mountcd"
2. Edit it with a text editor and put the following inside:
Code:
#!/bin/bash
mount -t iso9660 -o ro /dev/cdrom /cdrom
3. Change the permission as follow: (this will change the permission to read and execute for all user on this computer) type:
man chmod for more info.
Code:
$chmod 555 /Path_of_your_script/your_script
4. login as root and move your script to /usr/bin
Code:
$su
$mv /Path_of_your_script/your_script /usr/bin
$exit
enjoy your new command.
For the alias:
1. edit the file
.bashrc in your home folder and add your alias line at the end.
2. Save the change, logout and log back in
enjoy your new command.