<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Fcpio</id>
	<title>Comandos de la terminal/cpio - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Comandos_de_la_terminal%2Fcpio"/>
	<link rel="alternate" type="text/html" href="https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/cpio&amp;action=history"/>
	<updated>2026-04-07T22:46:36Z</updated>
	<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/cpio&amp;diff=6465&amp;oldid=prev</id>
		<title>Rrc en 17:39 10 oct 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.cabal.mx/index.php?title=Comandos_de_la_terminal/cpio&amp;diff=6465&amp;oldid=prev"/>
		<updated>2014-10-10T17:39:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
* [[:#cpio | cpio]]&lt;br /&gt;
&lt;br /&gt;
== cpio ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ cpio --help&lt;br /&gt;
Usage: cpio [OPTION...] [destination-directory]&lt;br /&gt;
GNU `cpio&amp;#039; copies files to and from archives&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
  # Copy files named in name-list to the archive&lt;br /&gt;
  cpio -o &amp;lt; name-list [&amp;gt; archive]&lt;br /&gt;
  # Extract files from the archive&lt;br /&gt;
  cpio -i [&amp;lt; archive]&lt;br /&gt;
  # Copy files named in name-list to destination-directory&lt;br /&gt;
  cpio -p destination-directory &amp;lt; name-list&lt;br /&gt;
&lt;br /&gt;
 Main operation mode:&lt;br /&gt;
  -i, --extract              Extract files from an archive (run in copy-in&lt;br /&gt;
                             mode)&lt;br /&gt;
  -o, --create               Create the archive (run in copy-out mode)&lt;br /&gt;
  -p, --pass-through         Run in copy-pass mode&lt;br /&gt;
  -t, --list                 Print a table of contents of the input&lt;br /&gt;
&lt;br /&gt;
 Operation modifiers valid in any mode:&lt;br /&gt;
&lt;br /&gt;
      --block-size=BLOCK-SIZE   Set the I/O block size to BLOCK-SIZE * 512&lt;br /&gt;
                             bytes&lt;br /&gt;
  -B                         Set the I/O block size to 5120 bytes&lt;br /&gt;
  -c                         Use the old portable (ASCII) archive format&lt;br /&gt;
  -C, --io-size=NUMBER       Set the I/O block size to the given NUMBER of&lt;br /&gt;
                             bytes&lt;br /&gt;
      --force-local          Archive file is local, even if its name contains&lt;br /&gt;
                             colons&lt;br /&gt;
  -f, --nonmatching          Only copy files that do not match any of the given&lt;br /&gt;
                             patterns&lt;br /&gt;
  -F, --file=[[USER@]HOST:]FILE-NAME&lt;br /&gt;
                             Use this FILE-NAME instead of standard input or&lt;br /&gt;
                             output. Optional USER and HOST specify the user&lt;br /&gt;
                             and host names in case of a remote archive&lt;br /&gt;
  -H, --format=FORMAT        Use given archive FORMAT&lt;br /&gt;
  -M, --message=STRING       Print STRING when the end of a volume of the&lt;br /&gt;
                             backup media is reached&lt;br /&gt;
  -n, --numeric-uid-gid      In the verbose table of contents listing, show&lt;br /&gt;
                             numeric UID and GID&lt;br /&gt;
      --quiet                Do not print the number of blocks copied&lt;br /&gt;
      --rsh-command=COMMAND  Use remote COMMAND instead of rsh&lt;br /&gt;
  -v, --verbose              Verbosely list the files processed&lt;br /&gt;
  -V, --dot                  Print a &amp;quot;.&amp;quot; for each file processed&lt;br /&gt;
  -W, --warning=FLAG         Control warning display. Currently FLAG is one of&lt;br /&gt;
                             &amp;#039;none&amp;#039;, &amp;#039;truncate&amp;#039;, &amp;#039;all&amp;#039;. Multiple options&lt;br /&gt;
                             accumulate.&lt;br /&gt;
&lt;br /&gt;
 Operation modifiers valid only in copy-in mode:&lt;br /&gt;
&lt;br /&gt;
  -b, --swap                 Swap both halfwords of words and bytes of&lt;br /&gt;
                             halfwords in the data. Equivalent to -sS&lt;br /&gt;
  -r, --rename               Interactively rename files&lt;br /&gt;
  -s, --swap-bytes           Swap the bytes of each halfword in the files&lt;br /&gt;
  -S, --swap-halfwords       Swap the halfwords of each word (4 bytes) in the&lt;br /&gt;
                             files&lt;br /&gt;
      --to-stdout            Extract files to standard output&lt;br /&gt;
&lt;br /&gt;
  -E, --pattern-file=FILE    Read additional patterns specifying filenames to&lt;br /&gt;
                             extract or list from FILE&lt;br /&gt;
      --only-verify-crc      When reading a CRC format archive, only verify the&lt;br /&gt;
                             CRC&amp;#039;s of each file in the archive, don&amp;#039;t actually&lt;br /&gt;
                             extract the files&lt;br /&gt;
&lt;br /&gt;
 Operation modifiers valid only in copy-out mode:&lt;br /&gt;
&lt;br /&gt;
  -A, --append               Append to an existing archive.&lt;br /&gt;
  -O [[USER@]HOST:]FILE-NAME Archive filename to use instead of standard&lt;br /&gt;
                             output. Optional USER and HOST specify the user&lt;br /&gt;
                             and host names in case of a remote archive&lt;br /&gt;
&lt;br /&gt;
 Operation modifiers valid only in copy-pass mode:&lt;br /&gt;
&lt;br /&gt;
  -l, --link                 Link files instead of copying them, when&lt;br /&gt;
                             possible&lt;br /&gt;
&lt;br /&gt;
 Operation modifiers valid in copy-in and copy-out modes:&lt;br /&gt;
&lt;br /&gt;
      --absolute-filenames   Do not strip file system prefix components from&lt;br /&gt;
                             the file names&lt;br /&gt;
      --no-absolute-filenames   Create all files relative to the current&lt;br /&gt;
                             directory&lt;br /&gt;
&lt;br /&gt;
 Operation modifiers valid in copy-out and copy-pass modes:&lt;br /&gt;
&lt;br /&gt;
  -0, --null                 A list of filenames is terminated by a null&lt;br /&gt;
                             character instead of a newline&lt;br /&gt;
  -a, --reset-access-time    Reset the access times of files after reading them&lt;br /&gt;
                            &lt;br /&gt;
  -I [[USER@]HOST:]FILE-NAME Archive filename to use instead of standard input.&lt;br /&gt;
                             Optional USER and HOST specify the user and host&lt;br /&gt;
                             names in case of a remote archive&lt;br /&gt;
  -L, --dereference          Dereference  symbolic  links  (copy  the files&lt;br /&gt;
                             that they point to instead of copying the links).&lt;br /&gt;
  -R, --owner=[USER][:.][GROUP]   Set the ownership of all files created to the&lt;br /&gt;
                             specified USER and/or GROUP&lt;br /&gt;
&lt;br /&gt;
 Operation modifiers valid in copy-in and copy-pass modes:&lt;br /&gt;
&lt;br /&gt;
  -d, --make-directories     Create leading directories where needed&lt;br /&gt;
  -m, --preserve-modification-time&lt;br /&gt;
                             Retain previous file modification times when&lt;br /&gt;
                             creating files&lt;br /&gt;
      --no-preserve-owner    Do not change the ownership of the files&lt;br /&gt;
      --sparse               Write files with large blocks of zeros as sparse&lt;br /&gt;
                             files&lt;br /&gt;
  -u, --unconditional        Replace all files unconditionally&lt;br /&gt;
&lt;br /&gt;
  -?, --help                 give this help list&lt;br /&gt;
      --usage                give a short usage message&lt;br /&gt;
      --version              print program version&lt;br /&gt;
&lt;br /&gt;
Mandatory or optional arguments to long options are also mandatory or optional&lt;br /&gt;
for any corresponding short options.&lt;br /&gt;
&lt;br /&gt;
Report bugs to &amp;lt;bug-cpio@gnu.org&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ cpio --version&lt;br /&gt;
cpio (GNU cpio) 2.11&lt;br /&gt;
Copyright (C) 2010 Free Software Foundation, Inc.&lt;br /&gt;
License GPLv3+: GNU GPL version 3 or later &amp;lt;http://gnu.org/licenses/gpl.html&amp;gt;.&lt;br /&gt;
This is free software: you are free to change and redistribute it.&lt;br /&gt;
There is NO WARRANTY, to the extent permitted by law.&lt;br /&gt;
&lt;br /&gt;
Written by Phil Nelson, David MacKenzie, John Oleynick,&lt;br /&gt;
and Sergey Poznyakoff.&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ su -c &amp;quot;rpm -qf $( which cpio )&amp;quot;&lt;br /&gt;
Password: &lt;br /&gt;
cpio-2.11-6.mga4&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr BashClase]$ ls S*.sh | cpio -ov &amp;gt; Ejemplos.cpio&lt;br /&gt;
S10.sh&lt;br /&gt;
S11.sh&lt;br /&gt;
S12Eval.sh&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
S7.sh&lt;br /&gt;
S8.sh&lt;br /&gt;
S9.sh&lt;br /&gt;
23 blocks&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr BashClase]$ ls -alh Ejemplos.cpio &lt;br /&gt;
-rw------- 1 rrc rrc 12K Oct 10 11:49 ../BashClase/Ejemplos.cpio&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr BashClase]$ cpio -itF Ejemplos.cpio &lt;br /&gt;
S10.sh&lt;br /&gt;
S11.sh&lt;br /&gt;
S12Eval.sh&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
S5.sh&lt;br /&gt;
S6.sh&lt;br /&gt;
S7.sh&lt;br /&gt;
S8.sh&lt;br /&gt;
S9.sh&lt;br /&gt;
23 blocks&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr BashClase]$ cd ..&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ find BashClase -print | cpio -ov &amp;gt; BashClaseConFind.cpio &lt;br /&gt;
BashClase&lt;br /&gt;
BashClase/S6.sh&lt;br /&gt;
BashClase/5.Ztv&lt;br /&gt;
BashClase/S27.sh&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
BashClase/S19.sh&lt;br /&gt;
BashClase/1.bak&lt;br /&gt;
BashClase/S22.sh&lt;br /&gt;
25 blocks&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ ls -alh BashClaseConFind.cpio &lt;br /&gt;
-rw------- 1 rrc rrc 13K Oct 10 11:40 BashClaseConFind.cpio&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ cpio -itF BashClaseConFind.cpio&lt;br /&gt;
BashClase&lt;br /&gt;
BashClase/S6.sh&lt;br /&gt;
BashClase/5.Ztv&lt;br /&gt;
BashClase/S27.sh&lt;br /&gt;
BashClase/S14.sh&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
BashClase/S19.sh&lt;br /&gt;
BashClase/1.bak&lt;br /&gt;
BashClase/S22.sh&lt;br /&gt;
25 blocks&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ~]$ cd ComandosDeLaTerminal/&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ ls Uniq* | cpio -ovH tar -F UniqCpioTo.tar&lt;br /&gt;
Uniq.cpio&lt;br /&gt;
UniqEjemplo&lt;br /&gt;
UniqEjemplo.bz2&lt;br /&gt;
UniqEjemploConLineasVacios&lt;br /&gt;
UniqEjemploConLineasVacios.bz2&lt;br /&gt;
UniqEjemploMayusc&lt;br /&gt;
UniqEjemploMayusc.bz2&lt;br /&gt;
UniqEjemploMinusc&lt;br /&gt;
UniqEjemploMinusc.bz2&lt;br /&gt;
UniqSortEjemplo&lt;br /&gt;
UniqSortEjemplo.bz2&lt;br /&gt;
26 blocks&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ ls -al UniqCpioTo.tar &lt;br /&gt;
-rw------- 1 rrc rrc 13312 Oct 10 12:14 UniqCpioTo.tar&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ file UniqCpioTo.tar &lt;br /&gt;
UniqCpioTo.tar: tar archive&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ tar -tvf UniqCpioTo.tar &lt;br /&gt;
-rw------- 500/500        1536 2014-10-10 12:01 Uniq.cpio&lt;br /&gt;
-rw------- 500/500          48 2014-01-02 04:53 UniqEjemplo&lt;br /&gt;
-rw------- 500/500          73 2014-01-02 04:53 UniqEjemplo.bz2&lt;br /&gt;
-rw------- 500/500          54 2014-04-01 16:58 UniqEjemploConLineasVacios&lt;br /&gt;
-rw------- 500/500          77 2014-04-01 16:58 UniqEjemploConLineasVacios.bz2&lt;br /&gt;
-rw------- 500/500          34 2014-04-01 16:53 UniqEjemploMayusc&lt;br /&gt;
-rw------- 500/500          65 2014-04-01 16:53 UniqEjemploMayusc.bz2&lt;br /&gt;
-rw------- 500/500          34 2014-04-01 16:54 UniqEjemploMinusc&lt;br /&gt;
-rw------- 500/500          62 2014-04-01 16:54 UniqEjemploMinusc.bz2&lt;br /&gt;
-rw------- 500/500          48 2014-01-02 04:58 UniqSortEjemplo&lt;br /&gt;
-rw------- 500/500          71 2014-01-02 04:58 UniqSortEjemplo.bz2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ cpio -ivF ../BashClaseConFind.cpio &lt;br /&gt;
BashClase&lt;br /&gt;
BashClase/S6.sh&lt;br /&gt;
BashClase/5.Ztv&lt;br /&gt;
BashClase/S27.sh&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
BashClase/2.Ztv&lt;br /&gt;
BashClase/S19.sh&lt;br /&gt;
BashClase/1.bak&lt;br /&gt;
BashClase/S22.sh&lt;br /&gt;
25 blocks&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ cpio -ivF ../BashClaseConFind.cpio&lt;br /&gt;
BashClase&lt;br /&gt;
cpio: BashClase/S6.sh not created: newer or same age version exists&lt;br /&gt;
BashClase/S6.sh&lt;br /&gt;
cpio: BashClase/5.Ztv not created: newer or same age version exists&lt;br /&gt;
BashClase/5.Ztv&lt;br /&gt;
cpio: BashClase/S27.sh not created: newer or same age version exists&lt;br /&gt;
BashClase/S27.sh&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
cpio: BashClase/S19.sh not created: newer or same age version exists&lt;br /&gt;
BashClase/S19.sh&lt;br /&gt;
cpio: BashClase/1.bak not created: newer or same age version exists&lt;br /&gt;
BashClase/1.bak&lt;br /&gt;
cpio: BashClase/S22.sh not created: newer or same age version exists&lt;br /&gt;
BashClase/S22.sh&lt;br /&gt;
25 blocks&lt;br /&gt;
&lt;br /&gt;
[rrc@Llawyr ComandosDeLaTerminal]$ cpio -iuvF ../BashClaseConFind.cpio &lt;br /&gt;
BashClase&lt;br /&gt;
BashClase/S6.sh&lt;br /&gt;
BashClase/5.Ztv&lt;br /&gt;
BashClase/S27.sh&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
BashClase/2.Ztv&lt;br /&gt;
BashClase/S19.sh&lt;br /&gt;
BashClase/1.bak&lt;br /&gt;
BashClase/S22.sh&lt;br /&gt;
25 blocks&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Comandos de la terminal]]&lt;/div&gt;</summary>
		<author><name>Rrc</name></author>
		
	</entry>
</feed>