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.
If this was useful for you, please consider making a donation, any amount is welcome, please proceed by clicking on the yellow donate button, thank you in advance.






Recent comments
1 week 15 hours ago
1 week 1 day ago
1 week 4 days ago
2 weeks 23 hours ago
2 weeks 6 days ago
3 weeks 4 days ago
3 weeks 4 days ago
3 weeks 6 days ago
4 weeks 12 hours ago
4 weeks 4 days ago