dinsdag 30 juni 2009

dinsdag 23 juni 2009

mount usb drive

mkdir /mnt/usb
mount -t ntfs /dev/sdb1 /mnt/usb

in en uitpakken met tar

cd /etc
tar -cvf /root/etc-files.tar ./*

listing

cd
tar -tvf etc-files.tar

restore files, but now in a subdirectory of your home directory

mkdir etc
cd etc
tar -xvf ../etc-files.tar