Mailing List Archive

Support open source code!


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

Re: tar and directory information



> akamine> tar -zcvf data.tgz /home/work/data
> ...
> akamine> creates a directory /home/work/data in the current directory and puts
> akamine> the files in it. I want this not to happen (just to put the files and
> akamine> directories in the current directory). How can I do this?
> 
> use -C or --directory option

Or:
  cd /home/work/data
  tar -zcvf data.tgz *

Darren

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links