Tuesday, April 24, 2012

Wipe a hard disk


1) Create a backup:- dd if=/dev/sdax of = /tmp/backup.img 2) To wipe dd if/=/dev/urandom of=/dev/[partition-to-wipe]

Sunday, April 15, 2012

How to extract *.xz files ?

How to extract *.xz files ?

If you are running Ubuntu, you should have the xz-utils installed by default. I am running Ubuntu 10.04, and to extract .xz files, I use the following command:

if it is not installed , install by giving the command:- sudo apt-get install xz-utils


xz -d path/to/file.xz

This will extract the file to the current directory.