From 1a8f54c3753df6fda7671ce31228a51724100ade Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Wed, 7 Sep 2016 23:42:01 +0530 Subject: [PATCH] cpio: Update description to match flags --- pages/common/cpio.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pages/common/cpio.md b/pages/common/cpio.md index ea00554a3..f6667adeb 100644 --- a/pages/common/cpio.md +++ b/pages/common/cpio.md @@ -1,16 +1,15 @@ # cpio -> Archiving utility. +> Copies files to and from archives. -- Create an archive from files +- Take a list of file names from standard input and creates an archive from them: -`echo "{{file1}} {{file2}} {{file3}}" | cpio -ov > {{archive.cpio}}` +`echo "{{file1}} {{file2}} {{file3}}" | cpio -o > {{[o]utput_archive.cpio}}` -- Create an archive from a directory +- Create an archive containing all the files and folders in a directory in [v]erbose mode: -`find {{directory}} | cpio -ov > {{archive.cpio}}` +`find {{path/to/directory}} | cpio -ov > {{[o]utput_archive.cpio}}` -- Extract an archive - -`cpio -idv < {{archive.cpio}}` +- Extract files from an archive, generating [d]irectories where needed, in [v]erbose mode: +`cpio -idv < {{[i]nput_archive.cpio}}`