I have a tar (websites.tgz) that contain a bunch of Drupal websites that are tarred up starting with 'htdocs'
I need to untar them into
/local/htdocs/web1
/local/htdocs/web2
and so on. But I cannot place the websites.tgz file in /local and extract downward due to permissions. It is currently in my home directory. How can I untar the contents under /local/htdocs, without including the top-level htdocs directory?
I am trying to avoid having:
/local/htdocs/htdocs/web1
/local/htdocs/htdocs/web2.
Thanks for any help.
/local
, then you can't create the subdirectories. Or do they exist already?