category: TIL

cpio - copy files to and from archives

3 Jan, 2016 - 2 minutes
I found this command when I picked up Unix in Easy Steps Went to page 40~ and saw how to make backups. Thought “pfft they will just use tar”. And there it was cpio, never head of it before. Book said that its commonly used to create archives, madness. ls | cpio -ov > directory.cpio Stick all the files in the current directory into an archive directory.cpio. -o creates and -v verbose.