Download as:
Rating : ⭐⭐⭐⭐⭐
Price: $10.99
Language:EN

Reference: tar

UNIX in a Nutshell: System V Edition

 

tar

tar [options] [files]
-C dir files
-I file
-X

Function Options (choose one)

c
r

Append files to archive.

t

Table of contents. Print the names of files if they are stored on the archive (if files not specified, print names of all files).

u
x

Options

b n
B
e

Exit immediately upon unexpected errors. Solaris only.

E

Use an extended header that allows longer filenames, larger files, and other extensions. Not portable. Solaris only.

f arch
F, FF
i
k size
l

Print error messages about links that can't be found.

L

Follow symbolic links. SVR4 only.

m
n
o
p
P

Do not add a trailing / to directory names in the archive. Solaris only.

v

Print function letter (x for extraction or a for archive) and name of files. With t, print a listing similar to that of ls -l.

w
n[c]

Examples

tar cvf /dev/rmt/0 /bin /usr/bin
tar tvf /dev/rmt/0

Extract the /bin directory:

tar xvf /dev/rmt/0 /bin

Create an archive of the current directory, and store it in a file /tmp/backup.tar on the system. (Backing up a directory into a file in that directory almost never works.)

tar cvf /tmp/backup.tar .
tar cvf - . | compress > /tmp/backup.tar.Z
# cd olddir; tar cf - . | (cd newdir; tar xvpf -)

Previous: Reference: talk UNIX in a Nutshell: System V Edition Next: Reference: tbl
Reference: talk Book Index Reference: tbl

The UNIX CD Bookshelf Navigation
Copyright © 2009-2023 UrgentHomework.com, All right reserved.