home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / question / 15263 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.2 KB  |  33 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!gatech!concert!uvaarpa!murdoch!holmes.acc.Virginia.EDU!cpr4k
  3. From: cpr4k@holmes.acc.Virginia.EDU (Christian P. Roberts)
  4. Subject: Re: tar
  5. Message-ID: <1993Jan7.155620.16729@murdoch.acc.Virginia.EDU>
  6. Sender: usenet@murdoch.acc.Virginia.EDU
  7. Organization: Academic Computing Center - U.Va.
  8. References:  <79339@hydra.gatech.EDU>
  9. Date: Thu, 7 Jan 1993 15:56:20 GMT
  10. Lines: 21
  11.  
  12. In article <79339@hydra.gatech.EDU>, ccasted@prism.gatech.EDU (Edward Deering Boykin) writes:
  13. |> what is the proper way to tar adirectory and all directories and files in it to
  14. |> a file?
  15. |> ie: I have a directory X with directory Y and Z and files A,B and C. I
  16. |> want to put the entire structure into a tar file which when I untar it the
  17. |> directories and files will be where they used to be.
  18. |> 
  19.  
  20. While at the level of directory X, give the command
  21.        
  22. tar cvf X.tar ./X
  23.  
  24. To untar it somewhere else, copy the file X.tar to that place and use
  25.  
  26. tar xvf X.tar
  27.  
  28. -- 
  29.  
  30. Chris Roberts                     ITC/Academic Computing Center
  31. cpr4k@virginia.edu                University of Virginia           
  32. (804) 982-4693                    Charlottesville, Virginia 22903
  33.