UNIX: Difference between revisions

From John's wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
= General =
To rip a CD/DVD ISO image with dd:
 
To rip a CD/DVD ISO image:


  $ dd if=/dev/cdrom of=~/my.iso bs=1024
  $ dd if=/dev/cdrom of=~/my.iso bs=1024
= Solaris =


To [http://www.tech-recipes.com/solaris_system_administration_tips218.html mount an ISO image on Solaris]:
To [http://www.tech-recipes.com/solaris_system_administration_tips218.html mount an ISO image on Solaris]:


  # mount -F hsfs -o ro `lofiadm -a /export/temp/software.iso` /mnt
  # mount -F hsfs -o ro `lofiadm -a /export/temp/software.iso` /mnt
To print the route table on Solaris/BSD:
# netstat -r
To backup a MySql database:
# mysqldump -h localhost -u username -ppassword dbname > \
  /var/backups/dbname_`date +%F-%s`.sql

Revision as of 09:12, 6 April 2008

To rip a CD/DVD ISO image with dd:

$ dd if=/dev/cdrom of=~/my.iso bs=1024

To mount an ISO image on Solaris:

# mount -F hsfs -o ro `lofiadm -a /export/temp/software.iso` /mnt

To print the route table on Solaris/BSD:

# netstat -r

To backup a MySql database:

# mysqldump -h localhost -u username -ppassword dbname > \
  /var/backups/dbname_`date +%F-%s`.sql