Use the watch command to highlight changes in vmstat & iostat
10 June 2011
Watch coomand
watch -d --interval=1 iostat -xc
watch --color -d --interval=1 vmstat
18 August 2009
cpio examples
To create an archive
find . | cpio -ocvB > x.cpio
Read an archive:
cpio -itcvB -I x.cpio
Read a file from archive:
cpio -itcvB -I x.cpio ".ssh/known_hosts"
Restore the file (remove the t option).
cpio -icvB -I x.cpio ".ssh/known_hosts"
07 January 2009
22 August 2008
Grub. Quick fix after XP re-install
Boot off rescue dvd/cd.
start grub.
>find /boot/grub/stage1
(hd0,2)
>root (hd0,2)
>setup (hd0)
>exit
reboot.
Labels:
grub
21 May 2008
Create large files for testing.
This command will create a 100Mb file.dd if=/dev/random of=myfile.dat bs=$(( 1024 * 1024 )) count=100This can take a long time, so try thisdd if=/dev/zero of=myfile.dat bs=$(( 1024 * 1024 )) count=100
See Unix Administratosphere for more detail.
Labels:
large files,
linux,
sparse files
31 January 2008
Subscribe to:
Posts (Atom)
