Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2009

    Unanswered: How to extract a single file from a tar file

    Hello Dear,

    I have a tar file that contains huge number of files with huge file sizes. I don't want to extract all the files becoz of disk space issue . I want to retrieve a single file from it .

    can any one tell me how to get that particular file say the file name is abc_pqr_xyz.une

    I want a single command that gets the file required .

    note:- assume that file extracted to be placed in the same directory of tar.

    Appreciate your quick reply


  2. #2
    Join Date
    May 2005
    South Africa
    Provided Answers: 1
    just specify the path and filename as it is in the tar file
    If not shure about path name
    tar tvf thetarfile | grep abc_pqr_xyz.une

  3. #3
    Join Date
    Nov 2009
    This is also one of the ways to extract a particular file from tar

    $tar -xvf <TarFileName> <FileNameToBeExtracted>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts