next up previous

3.1.4 Text Compression and File Archives     continued...

% ls -l *.tar
-rw-r--r-- 1 csep users 10240 Aug 21 10:45 foo.tar
-rw-r--r-- 1 csep users 10240 Aug 21 10:46 letters.tar
% tar tf foo.tar

(see what's in foo.tar)

foo/
foo/foo
foo/bar
(foo.tar contains its own subdirectory)

foo/baz
% tar xvf foo.tar
(
(go ahead and extract the files)

x foo/foo, 4 bytes, 1 media blocks.
x foo/bar, 4 bytes, 1 media blocks.
x foo/baz, 4 bytes, 1 media blocks.
% tar tf letters.tar
(see what's in letters.tar)

alpha
beta