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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tar a directory

Status
Not open for further replies.

BIS

Technical User
Jun 1, 2001
1,893
NL
Can anybody tell me how I make a tar file of all the contents in a directory? For example I would like to have one tar file for everything in /path/to/dir ?
 
BIS,

tar cvf <filename>.tar /path/to/dir

will do what you require. In older versions the cvf needs to be preceded by a -.

HTH.
 
Learning every day...

Much appreciated, many thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top