Monday 24 December 2012

Linux Quick How To


*) Mounting an ISO image as a filesystem:
 mount -o loop -t iso9660 /FC7-i386-DVD.iso /iso

*) How to find md5 checksum of a file:
 md5sum filename.deb > filename.deb.md5

*) Repair a corrupt MBR:
 boot from the linux cd.
 boot: linux rescue [ at the boot prompt ]
 chroot /mnt/sysimage
 grub-install /dev/hda

*)  Mounting an ISO image as a filesystem:
 mount -o loop -t iso9660 /FC7-i386-DVD.iso /iso

*) How to find md5 checksum of a file:
 md5sum filename.deb > filename.deb.md5

*) Repair a corrupt MBR:
 boot from the linux cd.
 boot: linux rescue [ at the boot prompt ]
 chroot /mnt/sysimage
 grub-install /dev/hda

*) How to change file time stamps:
 touch -d ‘17 May 2006 14:16′ change_time_file1.txt

*) How to temporarily suspend a process:
 kill -STOP <PID_X> and to start it again: kill -CONT <PID_X>



No comments:

Post a Comment