Function Letters
The function portion of the key is specified by one of the following
letters:
c
Create. Writing begins at the beginning of the tarfile, instead of
at the end.
r
Replace. The named files are written at the end of the tarfile. A
file created with extended headers must be updated with extended
headers (see E flag under Function Modifiers). A file created with-
out extended headers cannot be modified with extended headers.
t
Table of Contents. The names of the specified files are listed each
time they occur in the tarfile. If no file argument is specified,
the names of all files and any associated extended attributes in
the tarfile are listed. With the v function modifier, additional
information for the specified files is displayed.
u
Update. The named files are written at the end of the tarfile if
they are not already in the tarfile, or if they have been modified
since last written to that tarfile. An update can be rather slow. A
tarfile created on a 5.x system cannot be updated on a 4.x system.
A file created with extended headers must be updated with extended
headers (see E flag under Function Modifiers). A file created with-
out extended headers cannot be modified with extended headers.
x
Extract or restore. The named files are extracted from the tarfile
and written to the directory specified in the tarfile, relative to
the current directory. Use the relative path names of files and
directories to be extracted.
Absolute path names contained in the tar archive are unpacked using
the absolute path names, that is, the leading forward slash (/) is
not stripped off.
If a named file matches a directory whose contents has been written
to the tarfile, this directory is recursively extracted. The owner,
modification time, and mode are restored (if possible); otherwise,
to restore owner, you must be the super-user. Character-special and
block-special devices (created by mknod(1M)) can only be extracted
by the super-user. If no file argument is specified, the entire
content of the tarfile is extracted. If the tarfile contains sev-
eral files with the same name, each file is written to the appro-
priate directory, overwriting the previous one. Filename substitu-
tion wildcards cannot be used for extracting files from the ar-
chive. Rather, use a command of the form:
tar xvf ... /dev/rmt/0 `tar tf ... /dev/rmt/0 | grep 'pattern' `
When extracting tapes created with the r or u functions, directory mod-
ification times can not be set correctly. These same functions cannot
be used with many tape drives due to tape drive limitations such as the
absence of backspace or append capabilities.
When using the r, u, or x functions or the X function modifier, the
named files must match exactly the corresponding files in the tarfile.
For example, to extract ./thisfile, you must specify ./thisfile, and
not thisfile. The t function displays how each file was archived.
There is always this, if the line is not too long:
$ tar cf xxxx.tar `find ...`
Hi,
I am using AIX 5.2, and I want to copy some files from one server to a remote server using tar command. Can anybody tell me exact command?
Thanks.
Aqeel (2 Replies)
Hi all,
4 files are returned when i issue 'find . -mtime -1 -type f -ls'.
./ora_475244.aud
./ora_671958.aud
./ora_934052.aud
./ora_934050.aud
However, when I issued the below command:
tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Good morning guys!!
Im still practicing with Perl and now Im trying to open a file, and copy its contents to another file. Them I want to remeove the information out of the orginal file after it is copied over.
The flow should be messages-->messages1-->messages2.
Kind of like a log... (1 Reply)
Hi,
I need to copy files from one dir to another dir.
The list of filesnames to be moved are in a file called files2cp.log
Script:
#!/bin/ksh
exec 0</home/amdocs/files2cp.log
while read LINE
do
cp -i /iccs33/attach/"$LINE" /iccs30/attach/"$LINE"
done
The output is "No such... (6 Replies)
Hi all,
I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Hi to all here ,
Excuse me for the lamer question but I need UNIX command for copying List of Files Under Different File Names !
for example I have this list:
new_001.jpg
new_002.jpg
new_003.jpg
.....
I want to copy all files that start with "new_" to the same directory but under... (7 Replies)
Hi All,
I need to copy files from one directory to another with the files to be renamed while copying if a file with the same name already exists in the target directory.
THanks,
Dev (2 Replies)
Discussion started by: dev.devil.1983
2 Replies
LEARN ABOUT SUNOS
deb-old
deb-old(5) dpkg suite deb-old(5)NAME
deb-old - old style Debian binary package format
SYNOPSIS
filename.deb
DESCRIPTION
The .deb format is the Debian binary package file format. This manual page describes the old format, used before Debian 0.93. Please see
deb(5) for details of the new format.
FORMAT
The file is two lines of format information as ASCII text, followed by two concatenated gzipped ustar files.
The first line is the format version number padded to 8 digits, and is 0.939000 for all old-format archives.
The second line is a decimal string (without leading zeroes) giving the length of the first gzipped tarfile.
Each of these lines is terminated with a single newline character.
The first tarfile contains the control information, as a series of ordinary files. The file control must be present, as it contains the
core control information.
In some very old archives, the files in the control tarfile may optionally be in a DEBIAN subdirectory. In that case, the DEBIAN
subdirectory will be in the control tarfile too, and the control tarfile will have only files in that directory. Optionally the control
tarfile may contain an entry for '.', that is, the current directory.
The second gzipped tarfile is the filesystem archive, containing pathnames relative to the root directory of the system to be installed on.
The pathnames do not have leading slashes.
SEE ALSO deb(5), dpkg-deb(1), deb-control(5).
1.19.0.5 2018-04-16 deb-old(5)