Category: Linux

MYSQL Database Restoration in Linux

Please run below command that from where you want to take database to restore: /usr/bin/mysqldump –user=proftpd –password=proftpd –opt –skip-lock-tables –single-transaction –default-character-set=binary –databases mds > MDS_Dump.sql Note:- If we know...

Read More

To MOUNT an ISO image in Linux

mount disk1.iso /mnt/iso/ -t iso9660 -o ro,loop (or) mount -o loop disk1.iso /mnt/iso/ (Ex:- mount -t iso9660 -o loop /opt/Software_Dumps/RHEL4.7-x86_64-AS-DVD.iso /mnt/local/ ) disk1.iso – The image you want to...

Read More

Shell Script to ziping a Bulk files:

======================Count=1Part=0echo “This zip contains the PDF Invoices” > /tmp/READMEzip PDF_Invoice_`date +’%d-%b-%Y’`-${Part}.zip /tmp/READMEwhile [ ${Count} -le 30174 ]do FileName=`head -n ${Count} /tmp/modfilelist | tail -n 1` echo “${Count} – Filename...

Read More