Submitted by ggarron on Sat, 12/27/2008 - 22:26
cpio is a tool to copy files from one place to another, and to create archives, (like tar), or extract files from an archive file.
The good thing is that cpio takes its input from other commands like ls, or find
So you can archive all .mp3 in your home directory by entering this command:
ls *.mp3 | cpio -o --format=tar -F mymp3.tar
Or if you want to include subfolders
find $HOME -name "*.mp3" | cpio -o --format=tar -F mymp3.tar
You can list the contents of a .tar file.
cpio -it -F mymp3.tar
And extract them:
cpio -i -F mymp3.tar
Run
info cpio
for a complete tutorial.







Recent comments
5 days 7 hours ago
5 days 17 hours ago
6 days 16 hours ago
1 week 5 hours ago
1 week 7 hours ago
1 week 1 day ago
1 week 1 day ago
1 week 2 days ago
2 weeks 4 hours ago
2 weeks 8 hours ago