Polecenie cpio
Opcje wykonania cpio w konsoli
Expect list of filenames to be terminated with null, not newline. This allows files with a newline in their names to be included.
Reset access times of input files after reading them.
Append files to an existing archive, which must be a disk file. Specify this archive with -O or -F.
Swap bytes and half-words to convert between big-endian and little-endian 32-bit integers.
Block input or output using 5120 bytes per record (default is 512 bytes per record).
Set input or output block size to size × 512 bytes.
Read or write header information as ASCII characters; useful when source and destination machines are different types.
Like -B, but block size can be any positive integer n.
Create directories as needed.
Extract from the archives filenames that match patterns in file.
Reverse the sense of copying; copy all files except those that match patterns.
Use file as the archive, not stdin or stdout. file can reside on another machine, if given in the form
user@hostname:file (where user@ is optional).
Assume that file (provided by -F, -I, or -O) is a local file, even if it contains a colon (:) indicating a remote file.
Use type format. Default for copy-out is bin; default for copy-in is autodetection of the format. Valid formats (all caps also accepted) are:
bin Binary.
odc Old (POSIX.1) portable format.
newc New (SVR4) portable format.
crc New (SVR4) portable format with checksum added.
tar Tar.
ustar POSIX.1 tar (also recognizes GNU tar archives).
hpbin HP-UX's binary (obsolete).
hpodc HP-UX's portable format.
Read file as an input archive. May be on a remote machine (see -F).
Ignored. For backward compatibility.
Link files instead of copying.
Follow symbolic links.
Retain previous file modification time.
Print msg when switching media, as a prompt before switching to new media. Use variable %d in the message as a numeric ID for the next medium. -M is valid only with -I or -O.
When verbosely listing contents, show user ID and group ID numerically.
Create all copied-in files relative to the current directory.
Make all copied files owned by yourself, instead of the owner of the original. Can be used only if you are a privileged user.
Archive the output to file, which may be a file on another machine (see -F).
For a CRC-format archive, verify the CRC of each file; don't actually copy the files in.
Don't print the number of blocks copied.
Rename files interactively.
Reassign file ownership and group information to the user's login ID (privileged users only).
Swap bytes of each two-byte half-word.
Swap half-words of each four-byte word.
For copy-out and copy-pass, write files that have large blocks of zeros as sparse files.
Print a table of contents of the input (create no files). When used with the -v option, resembles output of ls -l.
Unconditional copy; old files can overwrite new ones.
Print a list of filenames processed.
Print a dot for each file read or written (this shows cpio at work without cluttering the screen).
Print version number and then exit.
Przykłady cpio działanie w Słownik polecenie C
- Przykład CPIO użycie :
- Jak użyć common to the sorted files file1 and file2 . Output is in three columns, from left to right: lines unique to file1 , lines unique to file2 , and lines common to both files. comm is similar to diff in co znaczy.
- Przykład CPIO użycie :
- Jak użyć administration command. Control PCMCIA sockets or select the current scheme. The current scheme is sent along with the address of any inserted cards to configuration scripts (by default located in krzyżówka.
- Przykład CPIO użycie :
- Jak użyć administration command. Change user passwords in a batch. chpasswd accepts input in the form of one username :password pair per line. If the -e option is not specified, password is encrypted before co to jest.
- Przykład CPIO użycie :
- Jak użyć Set or retrieve the real-time scheduling properties of a given process, or run a new process with the given real-time scheduling properties słownik.
- Przykład CPIO użycie :
- Jak użyć or copy one or more files to the same names under directory . If the destination is an existing file, the file is overwritten; if the destination is an existing directory, the file is copied into czym jest.