Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating a tar file to include all sub folders / directories

Status
Not open for further replies.

parkers

Vendor
Oct 21, 2002
157
GB
Hi,

Does anyone know how to create a tar file which will bundle all sub-directories and files ?

Thanks,
 
AFAIK tar should, by default, include all directories and sub-directories. This from the AIX man page:

"If the File parameter refers to a directory,
then that directory and recursively all files and directories within it are referenced as well."

Seem to recall something about it having problems with empty directories however, though I might have dreamt that! HTH anyways.
 
man tar option -c

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top