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"

List hardware


07 January 2009

wget tips

Using wget to download file with a site that requires authentication.

wget ftp://user:password@ftp.site.com/dir/file.name