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

How to TAR an entire directory

Status
Not open for further replies.

bosoxer1

Programmer
Jan 22, 2005
20
0
0
US
Getting the following message on this:

drwxr-xr-x 2 xxxxxxx xxxxxxxx 256 Oct 17 16:01 configtool

tar -cvzf configtool.tar configtool

tar: Not a recognized flag: z
Usage: tar -{c|r|t|u|x} [-BdFhilmopsvw]
[-Number] [-fFile]
[-bBlocks] [-S [Feet] [Feet @Density] [Blocksb]]
[-LInputList] [-NBlocks] [-C Directory] File ...

I understand why, but don't know what parameters to use to get all subdirectories tar'd up.
 
tar -cvf configtool.tar configtool

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I tried that but get:

tar -cvf configtool.tar configtool

tar: configtool.tar: A file or directory in the path name does not exist.

Do I need to specify that its a directory?
 
Do you have write permissions in the current directory ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Your right. I was sudo'd to another user. Now to untar and test if I have all the sub directories.

Thank You.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top