Find extracted directory name from tar fileManipulate file name piped from find command'Tar' the result of a 'find', preserving the directory structureGet directory name from file nameUsing tar with findExtracting files to current directoryTar file with date as name?How to tar each directory as seperate file and keep the tar in another directory?tar extract after creating directory name based on tar fileFind filename inside tar archive in different directorySorting files into folders based on date in filename?

Why doesn't H₄O²⁺ exist?

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

Today is the Center

Do infinite dimensional systems make sense?

"You are your self first supporter", a more proper way to say it

Revoked SSL certificate

Malformed Address '10.10.21.08/24', must be X.X.X.X/NN or

Watching something be written to a file live with tail

Has there ever been an airliner design involving reducing generator load by installing solar panels?

What doth I be?

When a company launches a new product do they "come out" with a new product or do they "come up" with a new product?

NMaximize is not converging to a solution

Perform and show arithmetic with LuaLaTeX

RSA: Danger of using p to create q

Roll the carpet

Does detail obscure or enhance action?

High voltage LED indicator 40-1000 VDC without additional power supply

What does the "remote control" for a QF-4 look like?

What's the output of a record needle playing an out-of-speed record

What would happen to a modern skyscraper if it rains micro blackholes?

Is it possible to run Internet Explorer on OS X El Capitan?

dbcc cleantable batch size explanation

Important Resources for Dark Age Civilizations?

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?



Find extracted directory name from tar file


Manipulate file name piped from find command'Tar' the result of a 'find', preserving the directory structureGet directory name from file nameUsing tar with findExtracting files to current directoryTar file with date as name?How to tar each directory as seperate file and keep the tar in another directory?tar extract after creating directory name based on tar fileFind filename inside tar archive in different directorySorting files into folders based on date in filename?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















I have a project where I am downloading and compiling a bunch of files. The assumptions I can make about this files are:



  • there will only be one top level directory

  • the folder name doesn't necessarily match the tar.xz/gz filename (in other words something-1.3.5a.tar.gz might extract to a folder called something-1.3.5)

In order to lessen the amount of typing I have to do I wrote a small script, which among other things does the follow:



  • extracts the tar.xz/gz file

  • cds into the directory

My current hack is to do something like this:



test1=$(tar -axvf something-1.3.5a.tar.gz)



cd $(echo $test1 | cut -f1 -d" ")



Basically what this does is it captures the output of the extraction, and takes the first line (which is the top level directory) and then cds into it.



So, my question is this, is there a cleaner/better way of doing this?










share|improve this question






















  • You could use the t option in tar to list the contents, e.g.: cd "$(tar tfz "$file" | head -n 1 | cut -f1)", but that's not really much better. There's no built-in way to do this (that I know of), as the assumption you make is not always true for every possible tarball.

    – marinus
    Sep 14 '15 at 1:53












  • Thanks for your suggestion. Yeah, I had a much cleaner solution but I kept on finding exceptions and they weren't really regular enough to capture in sed and my sed command was just getting longer and longer. Since this solution works, I'm not too concerned if there isn't a better way but I wanted to check just in case there was something obvious that I was missing.

    – bash_noob-3.14.tar.gz
    Sep 14 '15 at 2:12











  • If the option -a works for you, you are not using tar but rather gtar. Since there is also no standard tar option -z, in theory the proposal from marinus could fail as well. If you don't like to be portable, you may stay with that...

    – schily
    Sep 14 '15 at 8:54











  • Thanks for your input, schily. Since I can always expect to use gtar, I think I should be right. There is no point finding and using a more portable solution if I won't ever need it.

    – bash_noob-3.14.tar.gz
    Sep 15 '15 at 0:04

















3















I have a project where I am downloading and compiling a bunch of files. The assumptions I can make about this files are:



  • there will only be one top level directory

  • the folder name doesn't necessarily match the tar.xz/gz filename (in other words something-1.3.5a.tar.gz might extract to a folder called something-1.3.5)

In order to lessen the amount of typing I have to do I wrote a small script, which among other things does the follow:



  • extracts the tar.xz/gz file

  • cds into the directory

My current hack is to do something like this:



test1=$(tar -axvf something-1.3.5a.tar.gz)



cd $(echo $test1 | cut -f1 -d" ")



Basically what this does is it captures the output of the extraction, and takes the first line (which is the top level directory) and then cds into it.



So, my question is this, is there a cleaner/better way of doing this?










share|improve this question






















  • You could use the t option in tar to list the contents, e.g.: cd "$(tar tfz "$file" | head -n 1 | cut -f1)", but that's not really much better. There's no built-in way to do this (that I know of), as the assumption you make is not always true for every possible tarball.

    – marinus
    Sep 14 '15 at 1:53












  • Thanks for your suggestion. Yeah, I had a much cleaner solution but I kept on finding exceptions and they weren't really regular enough to capture in sed and my sed command was just getting longer and longer. Since this solution works, I'm not too concerned if there isn't a better way but I wanted to check just in case there was something obvious that I was missing.

    – bash_noob-3.14.tar.gz
    Sep 14 '15 at 2:12











  • If the option -a works for you, you are not using tar but rather gtar. Since there is also no standard tar option -z, in theory the proposal from marinus could fail as well. If you don't like to be portable, you may stay with that...

    – schily
    Sep 14 '15 at 8:54











  • Thanks for your input, schily. Since I can always expect to use gtar, I think I should be right. There is no point finding and using a more portable solution if I won't ever need it.

    – bash_noob-3.14.tar.gz
    Sep 15 '15 at 0:04













3












3








3


2






I have a project where I am downloading and compiling a bunch of files. The assumptions I can make about this files are:



  • there will only be one top level directory

  • the folder name doesn't necessarily match the tar.xz/gz filename (in other words something-1.3.5a.tar.gz might extract to a folder called something-1.3.5)

In order to lessen the amount of typing I have to do I wrote a small script, which among other things does the follow:



  • extracts the tar.xz/gz file

  • cds into the directory

My current hack is to do something like this:



test1=$(tar -axvf something-1.3.5a.tar.gz)



cd $(echo $test1 | cut -f1 -d" ")



Basically what this does is it captures the output of the extraction, and takes the first line (which is the top level directory) and then cds into it.



So, my question is this, is there a cleaner/better way of doing this?










share|improve this question














I have a project where I am downloading and compiling a bunch of files. The assumptions I can make about this files are:



  • there will only be one top level directory

  • the folder name doesn't necessarily match the tar.xz/gz filename (in other words something-1.3.5a.tar.gz might extract to a folder called something-1.3.5)

In order to lessen the amount of typing I have to do I wrote a small script, which among other things does the follow:



  • extracts the tar.xz/gz file

  • cds into the directory

My current hack is to do something like this:



test1=$(tar -axvf something-1.3.5a.tar.gz)



cd $(echo $test1 | cut -f1 -d" ")



Basically what this does is it captures the output of the extraction, and takes the first line (which is the top level directory) and then cds into it.



So, my question is this, is there a cleaner/better way of doing this?







bash shell-script






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 14 '15 at 1:15









bash_noob-3.14.tar.gzbash_noob-3.14.tar.gz

1612




1612












  • You could use the t option in tar to list the contents, e.g.: cd "$(tar tfz "$file" | head -n 1 | cut -f1)", but that's not really much better. There's no built-in way to do this (that I know of), as the assumption you make is not always true for every possible tarball.

    – marinus
    Sep 14 '15 at 1:53












  • Thanks for your suggestion. Yeah, I had a much cleaner solution but I kept on finding exceptions and they weren't really regular enough to capture in sed and my sed command was just getting longer and longer. Since this solution works, I'm not too concerned if there isn't a better way but I wanted to check just in case there was something obvious that I was missing.

    – bash_noob-3.14.tar.gz
    Sep 14 '15 at 2:12











  • If the option -a works for you, you are not using tar but rather gtar. Since there is also no standard tar option -z, in theory the proposal from marinus could fail as well. If you don't like to be portable, you may stay with that...

    – schily
    Sep 14 '15 at 8:54











  • Thanks for your input, schily. Since I can always expect to use gtar, I think I should be right. There is no point finding and using a more portable solution if I won't ever need it.

    – bash_noob-3.14.tar.gz
    Sep 15 '15 at 0:04

















  • You could use the t option in tar to list the contents, e.g.: cd "$(tar tfz "$file" | head -n 1 | cut -f1)", but that's not really much better. There's no built-in way to do this (that I know of), as the assumption you make is not always true for every possible tarball.

    – marinus
    Sep 14 '15 at 1:53












  • Thanks for your suggestion. Yeah, I had a much cleaner solution but I kept on finding exceptions and they weren't really regular enough to capture in sed and my sed command was just getting longer and longer. Since this solution works, I'm not too concerned if there isn't a better way but I wanted to check just in case there was something obvious that I was missing.

    – bash_noob-3.14.tar.gz
    Sep 14 '15 at 2:12











  • If the option -a works for you, you are not using tar but rather gtar. Since there is also no standard tar option -z, in theory the proposal from marinus could fail as well. If you don't like to be portable, you may stay with that...

    – schily
    Sep 14 '15 at 8:54











  • Thanks for your input, schily. Since I can always expect to use gtar, I think I should be right. There is no point finding and using a more portable solution if I won't ever need it.

    – bash_noob-3.14.tar.gz
    Sep 15 '15 at 0:04
















You could use the t option in tar to list the contents, e.g.: cd "$(tar tfz "$file" | head -n 1 | cut -f1)", but that's not really much better. There's no built-in way to do this (that I know of), as the assumption you make is not always true for every possible tarball.

– marinus
Sep 14 '15 at 1:53






You could use the t option in tar to list the contents, e.g.: cd "$(tar tfz "$file" | head -n 1 | cut -f1)", but that's not really much better. There's no built-in way to do this (that I know of), as the assumption you make is not always true for every possible tarball.

– marinus
Sep 14 '15 at 1:53














Thanks for your suggestion. Yeah, I had a much cleaner solution but I kept on finding exceptions and they weren't really regular enough to capture in sed and my sed command was just getting longer and longer. Since this solution works, I'm not too concerned if there isn't a better way but I wanted to check just in case there was something obvious that I was missing.

– bash_noob-3.14.tar.gz
Sep 14 '15 at 2:12





Thanks for your suggestion. Yeah, I had a much cleaner solution but I kept on finding exceptions and they weren't really regular enough to capture in sed and my sed command was just getting longer and longer. Since this solution works, I'm not too concerned if there isn't a better way but I wanted to check just in case there was something obvious that I was missing.

– bash_noob-3.14.tar.gz
Sep 14 '15 at 2:12













If the option -a works for you, you are not using tar but rather gtar. Since there is also no standard tar option -z, in theory the proposal from marinus could fail as well. If you don't like to be portable, you may stay with that...

– schily
Sep 14 '15 at 8:54





If the option -a works for you, you are not using tar but rather gtar. Since there is also no standard tar option -z, in theory the proposal from marinus could fail as well. If you don't like to be portable, you may stay with that...

– schily
Sep 14 '15 at 8:54













Thanks for your input, schily. Since I can always expect to use gtar, I think I should be right. There is no point finding and using a more portable solution if I won't ever need it.

– bash_noob-3.14.tar.gz
Sep 15 '15 at 0:04





Thanks for your input, schily. Since I can always expect to use gtar, I think I should be right. There is no point finding and using a more portable solution if I won't ever need it.

– bash_noob-3.14.tar.gz
Sep 15 '15 at 0:04










3 Answers
3






active

oldest

votes


















5














#!/bin/sh
Dir_name=`tar -tzf something-1.3.5a.tar.gz | head -1 | cut -f1 -d"/"`
echo $Dir_name

tar options details,
-t, --list
-z, --gzip, --ungzip filter the archive through gzip
-f, --force-local archive file is local even if has a colon


Here, we are getting the list of file in tar and taking the first line using head -1 cmd, extracting the first field using cut cmd.






share|improve this answer

























  • One thing to note is that if you're doing this with set pipefail, it will error as head has terminated after the first line.

    – IBam
    Nov 1 '16 at 15:39


















0














If you have one top directory and nothing, you can simply remember what directories there are before you run tar, and see what you have after you do that, assuming nobody else have changed that directory.



 # ksh terminology: set -A BEFORE .*/ */
BEFORE=(.*/ */)
tar -xf blah blah blah
AFTER=(.*/ */)
# We can make it O(n), since glob outputs can be assumed to be sorted.
# Do it.
for (( i = 0; i < "$#BEFORE[@]"; i++ )); do
[ "$BEFORE[i]" == "$AFTER[i]" ] || break
done
cd "$AFTER[i]"


This should work with all shells that has arithmetic for, arrays starting with a zero index and with $#arr[@] to access array member count.



There is actually one problem, since */ may expand into literally */ where there is no match. In bash (assuming you are using bash because of your tag), you can set shopt -s nullglob for that.



Using */ restricts the globbed items to directories, so you won't worry about files -- Extra files still make it only one dir :)






share|improve this answer
































    0














    With a tar.bz2 file, to not get something like:



    0 0 2019-04-02 17:20 folder name


    I'm using -tf options:



    tar -tf file_name.tar.bz2 | head -1 | cut -f1 -d"/"





    share|improve this answer








    New contributor




    fabatera is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.




















      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f229504%2ffind-extracted-directory-name-from-tar-file%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      5














      #!/bin/sh
      Dir_name=`tar -tzf something-1.3.5a.tar.gz | head -1 | cut -f1 -d"/"`
      echo $Dir_name

      tar options details,
      -t, --list
      -z, --gzip, --ungzip filter the archive through gzip
      -f, --force-local archive file is local even if has a colon


      Here, we are getting the list of file in tar and taking the first line using head -1 cmd, extracting the first field using cut cmd.






      share|improve this answer

























      • One thing to note is that if you're doing this with set pipefail, it will error as head has terminated after the first line.

        – IBam
        Nov 1 '16 at 15:39















      5














      #!/bin/sh
      Dir_name=`tar -tzf something-1.3.5a.tar.gz | head -1 | cut -f1 -d"/"`
      echo $Dir_name

      tar options details,
      -t, --list
      -z, --gzip, --ungzip filter the archive through gzip
      -f, --force-local archive file is local even if has a colon


      Here, we are getting the list of file in tar and taking the first line using head -1 cmd, extracting the first field using cut cmd.






      share|improve this answer

























      • One thing to note is that if you're doing this with set pipefail, it will error as head has terminated after the first line.

        – IBam
        Nov 1 '16 at 15:39













      5












      5








      5







      #!/bin/sh
      Dir_name=`tar -tzf something-1.3.5a.tar.gz | head -1 | cut -f1 -d"/"`
      echo $Dir_name

      tar options details,
      -t, --list
      -z, --gzip, --ungzip filter the archive through gzip
      -f, --force-local archive file is local even if has a colon


      Here, we are getting the list of file in tar and taking the first line using head -1 cmd, extracting the first field using cut cmd.






      share|improve this answer















      #!/bin/sh
      Dir_name=`tar -tzf something-1.3.5a.tar.gz | head -1 | cut -f1 -d"/"`
      echo $Dir_name

      tar options details,
      -t, --list
      -z, --gzip, --ungzip filter the archive through gzip
      -f, --force-local archive file is local even if has a colon


      Here, we are getting the list of file in tar and taking the first line using head -1 cmd, extracting the first field using cut cmd.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Dec 2 '15 at 9:21









      Archemar

      20.5k93973




      20.5k93973










      answered Dec 2 '15 at 9:10









      NagaNaga

      5112




      5112












      • One thing to note is that if you're doing this with set pipefail, it will error as head has terminated after the first line.

        – IBam
        Nov 1 '16 at 15:39

















      • One thing to note is that if you're doing this with set pipefail, it will error as head has terminated after the first line.

        – IBam
        Nov 1 '16 at 15:39
















      One thing to note is that if you're doing this with set pipefail, it will error as head has terminated after the first line.

      – IBam
      Nov 1 '16 at 15:39





      One thing to note is that if you're doing this with set pipefail, it will error as head has terminated after the first line.

      – IBam
      Nov 1 '16 at 15:39













      0














      If you have one top directory and nothing, you can simply remember what directories there are before you run tar, and see what you have after you do that, assuming nobody else have changed that directory.



       # ksh terminology: set -A BEFORE .*/ */
      BEFORE=(.*/ */)
      tar -xf blah blah blah
      AFTER=(.*/ */)
      # We can make it O(n), since glob outputs can be assumed to be sorted.
      # Do it.
      for (( i = 0; i < "$#BEFORE[@]"; i++ )); do
      [ "$BEFORE[i]" == "$AFTER[i]" ] || break
      done
      cd "$AFTER[i]"


      This should work with all shells that has arithmetic for, arrays starting with a zero index and with $#arr[@] to access array member count.



      There is actually one problem, since */ may expand into literally */ where there is no match. In bash (assuming you are using bash because of your tag), you can set shopt -s nullglob for that.



      Using */ restricts the globbed items to directories, so you won't worry about files -- Extra files still make it only one dir :)






      share|improve this answer





























        0














        If you have one top directory and nothing, you can simply remember what directories there are before you run tar, and see what you have after you do that, assuming nobody else have changed that directory.



         # ksh terminology: set -A BEFORE .*/ */
        BEFORE=(.*/ */)
        tar -xf blah blah blah
        AFTER=(.*/ */)
        # We can make it O(n), since glob outputs can be assumed to be sorted.
        # Do it.
        for (( i = 0; i < "$#BEFORE[@]"; i++ )); do
        [ "$BEFORE[i]" == "$AFTER[i]" ] || break
        done
        cd "$AFTER[i]"


        This should work with all shells that has arithmetic for, arrays starting with a zero index and with $#arr[@] to access array member count.



        There is actually one problem, since */ may expand into literally */ where there is no match. In bash (assuming you are using bash because of your tag), you can set shopt -s nullglob for that.



        Using */ restricts the globbed items to directories, so you won't worry about files -- Extra files still make it only one dir :)






        share|improve this answer



























          0












          0








          0







          If you have one top directory and nothing, you can simply remember what directories there are before you run tar, and see what you have after you do that, assuming nobody else have changed that directory.



           # ksh terminology: set -A BEFORE .*/ */
          BEFORE=(.*/ */)
          tar -xf blah blah blah
          AFTER=(.*/ */)
          # We can make it O(n), since glob outputs can be assumed to be sorted.
          # Do it.
          for (( i = 0; i < "$#BEFORE[@]"; i++ )); do
          [ "$BEFORE[i]" == "$AFTER[i]" ] || break
          done
          cd "$AFTER[i]"


          This should work with all shells that has arithmetic for, arrays starting with a zero index and with $#arr[@] to access array member count.



          There is actually one problem, since */ may expand into literally */ where there is no match. In bash (assuming you are using bash because of your tag), you can set shopt -s nullglob for that.



          Using */ restricts the globbed items to directories, so you won't worry about files -- Extra files still make it only one dir :)






          share|improve this answer















          If you have one top directory and nothing, you can simply remember what directories there are before you run tar, and see what you have after you do that, assuming nobody else have changed that directory.



           # ksh terminology: set -A BEFORE .*/ */
          BEFORE=(.*/ */)
          tar -xf blah blah blah
          AFTER=(.*/ */)
          # We can make it O(n), since glob outputs can be assumed to be sorted.
          # Do it.
          for (( i = 0; i < "$#BEFORE[@]"; i++ )); do
          [ "$BEFORE[i]" == "$AFTER[i]" ] || break
          done
          cd "$AFTER[i]"


          This should work with all shells that has arithmetic for, arrays starting with a zero index and with $#arr[@] to access array member count.



          There is actually one problem, since */ may expand into literally */ where there is no match. In bash (assuming you are using bash because of your tag), you can set shopt -s nullglob for that.



          Using */ restricts the globbed items to directories, so you won't worry about files -- Extra files still make it only one dir :)







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Sep 15 '15 at 5:11

























          answered Sep 15 '15 at 4:59









          Arthur2e5Arthur2e5

          922519




          922519





















              0














              With a tar.bz2 file, to not get something like:



              0 0 2019-04-02 17:20 folder name


              I'm using -tf options:



              tar -tf file_name.tar.bz2 | head -1 | cut -f1 -d"/"





              share|improve this answer








              New contributor




              fabatera is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.
























                0














                With a tar.bz2 file, to not get something like:



                0 0 2019-04-02 17:20 folder name


                I'm using -tf options:



                tar -tf file_name.tar.bz2 | head -1 | cut -f1 -d"/"





                share|improve this answer








                New contributor




                fabatera is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






















                  0












                  0








                  0







                  With a tar.bz2 file, to not get something like:



                  0 0 2019-04-02 17:20 folder name


                  I'm using -tf options:



                  tar -tf file_name.tar.bz2 | head -1 | cut -f1 -d"/"





                  share|improve this answer








                  New contributor




                  fabatera is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.










                  With a tar.bz2 file, to not get something like:



                  0 0 2019-04-02 17:20 folder name


                  I'm using -tf options:



                  tar -tf file_name.tar.bz2 | head -1 | cut -f1 -d"/"






                  share|improve this answer








                  New contributor




                  fabatera is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer






                  New contributor




                  fabatera is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered 2 days ago









                  fabaterafabatera

                  1




                  1




                  New contributor




                  fabatera is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  fabatera is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  fabatera is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f229504%2ffind-extracted-directory-name-from-tar-file%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

                      Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

                      NetworkManager fails with “Could not find source connection”Trouble connecting to VPN using network-manager, while command line worksHow can I be notified about state changes to a VPN adapterBacktrack 5 R3 - Refuses to connect to VPNFeed all traffic through OpenVPN for a specific network namespace onlyRun daemon on startup in Debian once openvpn connection establishedpfsense tcp connection between openvpn and lan is brokenInternet connection problem with web browsers onlyWhy does NetworkManager explicitly support tun/tap devices?Browser issues with VPNTwo IP addresses assigned to the same network card - OpenVPN issues?Cannot connect to WiFi with nmcli, although secrets are provided