H I O X INDIA
LINUX Commands
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Templates 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)
Español Français 中文 Deutsch
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

LINUX / UNIX cmd
Introduction
Commands in A
Commands in B
Commands in C
Commands in D
Commands in E
Commands in F
Commands in G
Commands in H
Commands in I
Commands in J
Commands in K
Commands in L
Commands in M
Commands in N
Commands in P
Commands in R
Commands in S
Commands in T
Commands in U
Commands in W
Commands in Y
More about Linux
Feedback




cpio Linux Commands


Topic

What is Linux cpio Command?




Explanation

cpio COMMAND:
     cpio command creates and un-creates archived cpio files. It is capable of copying files to things other than a hard disk. Probably, this command is also used to backup and restore files.

SYNTAX:
  The Syntax is
     cpio [options]

OPTIONS:
     
-i Extracts files from the standard input.
-o Reads the standard input to obtain a list of path names and copies those files onto the standard output.
-p Reads the standard input to obtain a list of path names of files.
-c Read or write header information in ASCII character form for portability.
-d Creates directories as needed.
-u Copy unconditionally (normally, an older file will not replace a newer file with the same name).
-m Retain previous file modification time. This option is ineffective on directories that are being copied.
-v Verbose.Print a list of file names.



EXAMPLE:
     
  1. find . -print | cpio -ocv > /dev/fd0 

    Find list of files and directories and then copy those to floppy drive.

  2. find . -print | cpio -dumpv /home/nirmala

    Find list of files and directories and then copy or backup those to user.

  3. cpio -icuvd < /dev/fd0 

    Restore the files back from the floppy.






        Find LINUX Commands... Hope you enjoy this tutorial. We welcome your Valuable feedbacks or suggestions on this LINUX / UNIX cmd reference. This is a copyright content.


privacy policy     license     sitemap
© 2004-2009 HIOX INDIA - hioxindia.com

Other Links