- 3,129 hits
Place for playing with commands…
ODOC: About cpio
Creates and un-creates archived cpio files. And also is capable of copying files to things other than a hard disk.
find . -print | cpio -ocv > /dev/fd0
Above command, using the find command would list all files and directories and using the cpio command copy those files listed to the floppy drive.
find . -print | cpio -dumpv /home/users/hope
In the above example the find command would find all files and directories and using the cpio command copy those files to the hope user account.
cpio -icuvd < /dev/fd0
The above command would restore the files back from the floppy.