home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!gatech!concert!uvaarpa!murdoch!holmes.acc.Virginia.EDU!cpr4k
- From: cpr4k@holmes.acc.Virginia.EDU (Christian P. Roberts)
- Subject: Re: tar
- Message-ID: <1993Jan7.155620.16729@murdoch.acc.Virginia.EDU>
- Sender: usenet@murdoch.acc.Virginia.EDU
- Organization: Academic Computing Center - U.Va.
- References: <79339@hydra.gatech.EDU>
- Date: Thu, 7 Jan 1993 15:56:20 GMT
- Lines: 21
-
- In article <79339@hydra.gatech.EDU>, ccasted@prism.gatech.EDU (Edward Deering Boykin) writes:
- |> what is the proper way to tar adirectory and all directories and files in it to
- |> a file?
- |> ie: I have a directory X with directory Y and Z and files A,B and C. I
- |> want to put the entire structure into a tar file which when I untar it the
- |> directories and files will be where they used to be.
- |>
-
- While at the level of directory X, give the command
-
- tar cvf X.tar ./X
-
- To untar it somewhere else, copy the file X.tar to that place and use
-
- tar xvf X.tar
-
- --
-
- Chris Roberts ITC/Academic Computing Center
- cpr4k@virginia.edu University of Virginia
- (804) 982-4693 Charlottesville, Virginia 22903
-