Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tar and directory information



Suppose I use tar to archive files in a directory /home/work/data:

tar -zcvf data.tgz /home/work/data

the reference to the directory /home/work/data is preserved, meaning
that when I use tar -zxvf to restore the files in another directory, tar
creates a directory /home/work/data in the current directory and puts
the files in it. I want this not to happen (just to put the files and
directories in the current directory). How can I do this?

Thanks in advance


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links