tar command errors out “tar (child): liunx adventure group/: Cannot open: Is a directory”












-1














$ tar -czvf 'liunx adventure group'/ liunx adventure group/
tar (child): liunx adventure group/: Cannot open: Is a directory
tar (child): Error is not recoverable: exiting now
liunx adventure group/
liunx adventure group/datapacks/
liunx adventure group/advancements/
liunx adventure group/advancements/f10933e2-6368-4ffd-9d45-47f80e324ea1.json
liunx adventure group/session.lock
liunx adventure group/data/
liunx adventure group/data/map_1.dat
liunx adventure group/data/villages_nether.dat
liunx adventure group/data/villages_end.dat
liunx adventure group/data/idcounts.dat
liunx adventure group/data/scoreboard.dat
liunx adventure group/data/villages.dat
liunx adventure group/data/map_0.dat
liunx adventure group/region/
liunx adventure group/region/r.0.-1.mca
tar: liunx adventure group/: Wrote only 2048 of 10240 bytes
tar: Child returned status 2
tar: Error is not recoverable: exiting now


Is my command wrong?










share|improve this question









New contributor




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




















  • Can you try this command: tar -czvf 'liunx_adventure_group.tar' liunx adventure group/, and post the output in the query above? You cannot have a file with the same name as the directory.
    – AmeyaVS
    Dec 20 at 7:46












  • it export a .tar file
    – Sam Lo
    Dec 20 at 7:48






  • 1




    You are specifying the same name for the zipped file as the directory name which you are trying to zip.
    – AmeyaVS
    Dec 20 at 7:49










  • thanks for you help , it's work now . i use gzip to compress it , next it create a .tar.gz file , is this a correct compress method ???
    – Sam Lo
    Dec 20 at 7:54
















-1














$ tar -czvf 'liunx adventure group'/ liunx adventure group/
tar (child): liunx adventure group/: Cannot open: Is a directory
tar (child): Error is not recoverable: exiting now
liunx adventure group/
liunx adventure group/datapacks/
liunx adventure group/advancements/
liunx adventure group/advancements/f10933e2-6368-4ffd-9d45-47f80e324ea1.json
liunx adventure group/session.lock
liunx adventure group/data/
liunx adventure group/data/map_1.dat
liunx adventure group/data/villages_nether.dat
liunx adventure group/data/villages_end.dat
liunx adventure group/data/idcounts.dat
liunx adventure group/data/scoreboard.dat
liunx adventure group/data/villages.dat
liunx adventure group/data/map_0.dat
liunx adventure group/region/
liunx adventure group/region/r.0.-1.mca
tar: liunx adventure group/: Wrote only 2048 of 10240 bytes
tar: Child returned status 2
tar: Error is not recoverable: exiting now


Is my command wrong?










share|improve this question









New contributor




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




















  • Can you try this command: tar -czvf 'liunx_adventure_group.tar' liunx adventure group/, and post the output in the query above? You cannot have a file with the same name as the directory.
    – AmeyaVS
    Dec 20 at 7:46












  • it export a .tar file
    – Sam Lo
    Dec 20 at 7:48






  • 1




    You are specifying the same name for the zipped file as the directory name which you are trying to zip.
    – AmeyaVS
    Dec 20 at 7:49










  • thanks for you help , it's work now . i use gzip to compress it , next it create a .tar.gz file , is this a correct compress method ???
    – Sam Lo
    Dec 20 at 7:54














-1












-1








-1







$ tar -czvf 'liunx adventure group'/ liunx adventure group/
tar (child): liunx adventure group/: Cannot open: Is a directory
tar (child): Error is not recoverable: exiting now
liunx adventure group/
liunx adventure group/datapacks/
liunx adventure group/advancements/
liunx adventure group/advancements/f10933e2-6368-4ffd-9d45-47f80e324ea1.json
liunx adventure group/session.lock
liunx adventure group/data/
liunx adventure group/data/map_1.dat
liunx adventure group/data/villages_nether.dat
liunx adventure group/data/villages_end.dat
liunx adventure group/data/idcounts.dat
liunx adventure group/data/scoreboard.dat
liunx adventure group/data/villages.dat
liunx adventure group/data/map_0.dat
liunx adventure group/region/
liunx adventure group/region/r.0.-1.mca
tar: liunx adventure group/: Wrote only 2048 of 10240 bytes
tar: Child returned status 2
tar: Error is not recoverable: exiting now


Is my command wrong?










share|improve this question









New contributor




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











$ tar -czvf 'liunx adventure group'/ liunx adventure group/
tar (child): liunx adventure group/: Cannot open: Is a directory
tar (child): Error is not recoverable: exiting now
liunx adventure group/
liunx adventure group/datapacks/
liunx adventure group/advancements/
liunx adventure group/advancements/f10933e2-6368-4ffd-9d45-47f80e324ea1.json
liunx adventure group/session.lock
liunx adventure group/data/
liunx adventure group/data/map_1.dat
liunx adventure group/data/villages_nether.dat
liunx adventure group/data/villages_end.dat
liunx adventure group/data/idcounts.dat
liunx adventure group/data/scoreboard.dat
liunx adventure group/data/villages.dat
liunx adventure group/data/map_0.dat
liunx adventure group/region/
liunx adventure group/region/r.0.-1.mca
tar: liunx adventure group/: Wrote only 2048 of 10240 bytes
tar: Child returned status 2
tar: Error is not recoverable: exiting now


Is my command wrong?







command-line tar






share|improve this question









New contributor




Sam Lo 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 question









New contributor




Sam Lo 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 question




share|improve this question








edited Dec 20 at 17:25









Zanna

50k13131238




50k13131238






New contributor




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









asked Dec 20 at 7:43









Sam Lo

32




32




New contributor




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





New contributor





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






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












  • Can you try this command: tar -czvf 'liunx_adventure_group.tar' liunx adventure group/, and post the output in the query above? You cannot have a file with the same name as the directory.
    – AmeyaVS
    Dec 20 at 7:46












  • it export a .tar file
    – Sam Lo
    Dec 20 at 7:48






  • 1




    You are specifying the same name for the zipped file as the directory name which you are trying to zip.
    – AmeyaVS
    Dec 20 at 7:49










  • thanks for you help , it's work now . i use gzip to compress it , next it create a .tar.gz file , is this a correct compress method ???
    – Sam Lo
    Dec 20 at 7:54


















  • Can you try this command: tar -czvf 'liunx_adventure_group.tar' liunx adventure group/, and post the output in the query above? You cannot have a file with the same name as the directory.
    – AmeyaVS
    Dec 20 at 7:46












  • it export a .tar file
    – Sam Lo
    Dec 20 at 7:48






  • 1




    You are specifying the same name for the zipped file as the directory name which you are trying to zip.
    – AmeyaVS
    Dec 20 at 7:49










  • thanks for you help , it's work now . i use gzip to compress it , next it create a .tar.gz file , is this a correct compress method ???
    – Sam Lo
    Dec 20 at 7:54
















Can you try this command: tar -czvf 'liunx_adventure_group.tar' liunx adventure group/, and post the output in the query above? You cannot have a file with the same name as the directory.
– AmeyaVS
Dec 20 at 7:46






Can you try this command: tar -czvf 'liunx_adventure_group.tar' liunx adventure group/, and post the output in the query above? You cannot have a file with the same name as the directory.
– AmeyaVS
Dec 20 at 7:46














it export a .tar file
– Sam Lo
Dec 20 at 7:48




it export a .tar file
– Sam Lo
Dec 20 at 7:48




1




1




You are specifying the same name for the zipped file as the directory name which you are trying to zip.
– AmeyaVS
Dec 20 at 7:49




You are specifying the same name for the zipped file as the directory name which you are trying to zip.
– AmeyaVS
Dec 20 at 7:49












thanks for you help , it's work now . i use gzip to compress it , next it create a .tar.gz file , is this a correct compress method ???
– Sam Lo
Dec 20 at 7:54




thanks for you help , it's work now . i use gzip to compress it , next it create a .tar.gz file , is this a correct compress method ???
– Sam Lo
Dec 20 at 7:54










2 Answers
2






active

oldest

votes


















1














Like AmeyaVS hints -



You need to give the tar archive a name, not the directory.
tar will NOT add .tar/.tgz to your archive.



tar (child): liunx adventure group/: Cannot open: Is a directory


says so, quite clearly.



Hint: you may not want to use -z (gzip) to compress.
-J uses xz, which is a more modern compress.






share|improve this answer























  • thanks , i know what happen now
    – Sam Lo
    Dec 20 at 7:56



















1














Please run that command like this:



tar -czvf 'liunx adventure group'.tar.gzip liunx adventure group/


Don't use space in the compressed filename, so the above would be better like this:



tar -czvf liunx_adventure_group.tar.gzip liunx adventure group/


See man tar:



Compression options
-a, --auto-compress
Use archive suffix to determine the compression program.

-I, --use-compress-program=COMMAND
Filter data through COMMAND. It must accept the -d option, for decompression. The argument can contain
command line options.

-j, --bzip2
Filter the archive through bzip2(1).

-J, --xz
Filter the archive through xz(1).

--lzip Filter the archive through lzip(1).

--lzma Filter the archive through lzma(1).

--lzop Filter the archive through lzop(1).

--no-auto-compress
Do not use archive suffix to determine the compression program.

-z, --gzip, --gunzip, --ungzip
Filter the archive through gzip(1).


Usage examples:



tar -czvf liunx_adventure_group.tar.gzip liunx adventure group/
tar -cjvf liunx_adventure_group.tar.bzip2 liunx adventure group/
tar -cJvf liunx_adventure_group.tar.xz liunx adventure group/





share|improve this answer























  • thanks a lot ^_^.
    – Sam Lo
    Dec 20 at 10:14











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});


}
});






Sam Lo is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1103290%2ftar-command-errors-out-tar-child-liunx-adventure-group-cannot-open-is-a-d%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Like AmeyaVS hints -



You need to give the tar archive a name, not the directory.
tar will NOT add .tar/.tgz to your archive.



tar (child): liunx adventure group/: Cannot open: Is a directory


says so, quite clearly.



Hint: you may not want to use -z (gzip) to compress.
-J uses xz, which is a more modern compress.






share|improve this answer























  • thanks , i know what happen now
    – Sam Lo
    Dec 20 at 7:56
















1














Like AmeyaVS hints -



You need to give the tar archive a name, not the directory.
tar will NOT add .tar/.tgz to your archive.



tar (child): liunx adventure group/: Cannot open: Is a directory


says so, quite clearly.



Hint: you may not want to use -z (gzip) to compress.
-J uses xz, which is a more modern compress.






share|improve this answer























  • thanks , i know what happen now
    – Sam Lo
    Dec 20 at 7:56














1












1








1






Like AmeyaVS hints -



You need to give the tar archive a name, not the directory.
tar will NOT add .tar/.tgz to your archive.



tar (child): liunx adventure group/: Cannot open: Is a directory


says so, quite clearly.



Hint: you may not want to use -z (gzip) to compress.
-J uses xz, which is a more modern compress.






share|improve this answer














Like AmeyaVS hints -



You need to give the tar archive a name, not the directory.
tar will NOT add .tar/.tgz to your archive.



tar (child): liunx adventure group/: Cannot open: Is a directory


says so, quite clearly.



Hint: you may not want to use -z (gzip) to compress.
-J uses xz, which is a more modern compress.







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 20 at 17:26









Zanna

50k13131238




50k13131238










answered Dec 20 at 7:53









Holger Morgen

567




567












  • thanks , i know what happen now
    – Sam Lo
    Dec 20 at 7:56


















  • thanks , i know what happen now
    – Sam Lo
    Dec 20 at 7:56
















thanks , i know what happen now
– Sam Lo
Dec 20 at 7:56




thanks , i know what happen now
– Sam Lo
Dec 20 at 7:56













1














Please run that command like this:



tar -czvf 'liunx adventure group'.tar.gzip liunx adventure group/


Don't use space in the compressed filename, so the above would be better like this:



tar -czvf liunx_adventure_group.tar.gzip liunx adventure group/


See man tar:



Compression options
-a, --auto-compress
Use archive suffix to determine the compression program.

-I, --use-compress-program=COMMAND
Filter data through COMMAND. It must accept the -d option, for decompression. The argument can contain
command line options.

-j, --bzip2
Filter the archive through bzip2(1).

-J, --xz
Filter the archive through xz(1).

--lzip Filter the archive through lzip(1).

--lzma Filter the archive through lzma(1).

--lzop Filter the archive through lzop(1).

--no-auto-compress
Do not use archive suffix to determine the compression program.

-z, --gzip, --gunzip, --ungzip
Filter the archive through gzip(1).


Usage examples:



tar -czvf liunx_adventure_group.tar.gzip liunx adventure group/
tar -cjvf liunx_adventure_group.tar.bzip2 liunx adventure group/
tar -cJvf liunx_adventure_group.tar.xz liunx adventure group/





share|improve this answer























  • thanks a lot ^_^.
    – Sam Lo
    Dec 20 at 10:14
















1














Please run that command like this:



tar -czvf 'liunx adventure group'.tar.gzip liunx adventure group/


Don't use space in the compressed filename, so the above would be better like this:



tar -czvf liunx_adventure_group.tar.gzip liunx adventure group/


See man tar:



Compression options
-a, --auto-compress
Use archive suffix to determine the compression program.

-I, --use-compress-program=COMMAND
Filter data through COMMAND. It must accept the -d option, for decompression. The argument can contain
command line options.

-j, --bzip2
Filter the archive through bzip2(1).

-J, --xz
Filter the archive through xz(1).

--lzip Filter the archive through lzip(1).

--lzma Filter the archive through lzma(1).

--lzop Filter the archive through lzop(1).

--no-auto-compress
Do not use archive suffix to determine the compression program.

-z, --gzip, --gunzip, --ungzip
Filter the archive through gzip(1).


Usage examples:



tar -czvf liunx_adventure_group.tar.gzip liunx adventure group/
tar -cjvf liunx_adventure_group.tar.bzip2 liunx adventure group/
tar -cJvf liunx_adventure_group.tar.xz liunx adventure group/





share|improve this answer























  • thanks a lot ^_^.
    – Sam Lo
    Dec 20 at 10:14














1












1








1






Please run that command like this:



tar -czvf 'liunx adventure group'.tar.gzip liunx adventure group/


Don't use space in the compressed filename, so the above would be better like this:



tar -czvf liunx_adventure_group.tar.gzip liunx adventure group/


See man tar:



Compression options
-a, --auto-compress
Use archive suffix to determine the compression program.

-I, --use-compress-program=COMMAND
Filter data through COMMAND. It must accept the -d option, for decompression. The argument can contain
command line options.

-j, --bzip2
Filter the archive through bzip2(1).

-J, --xz
Filter the archive through xz(1).

--lzip Filter the archive through lzip(1).

--lzma Filter the archive through lzma(1).

--lzop Filter the archive through lzop(1).

--no-auto-compress
Do not use archive suffix to determine the compression program.

-z, --gzip, --gunzip, --ungzip
Filter the archive through gzip(1).


Usage examples:



tar -czvf liunx_adventure_group.tar.gzip liunx adventure group/
tar -cjvf liunx_adventure_group.tar.bzip2 liunx adventure group/
tar -cJvf liunx_adventure_group.tar.xz liunx adventure group/





share|improve this answer














Please run that command like this:



tar -czvf 'liunx adventure group'.tar.gzip liunx adventure group/


Don't use space in the compressed filename, so the above would be better like this:



tar -czvf liunx_adventure_group.tar.gzip liunx adventure group/


See man tar:



Compression options
-a, --auto-compress
Use archive suffix to determine the compression program.

-I, --use-compress-program=COMMAND
Filter data through COMMAND. It must accept the -d option, for decompression. The argument can contain
command line options.

-j, --bzip2
Filter the archive through bzip2(1).

-J, --xz
Filter the archive through xz(1).

--lzip Filter the archive through lzip(1).

--lzma Filter the archive through lzma(1).

--lzop Filter the archive through lzop(1).

--no-auto-compress
Do not use archive suffix to determine the compression program.

-z, --gzip, --gunzip, --ungzip
Filter the archive through gzip(1).


Usage examples:



tar -czvf liunx_adventure_group.tar.gzip liunx adventure group/
tar -cjvf liunx_adventure_group.tar.bzip2 liunx adventure group/
tar -cJvf liunx_adventure_group.tar.xz liunx adventure group/






share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 20 at 8:08

























answered Dec 20 at 8:02









George Udosen

19.4k94266




19.4k94266












  • thanks a lot ^_^.
    – Sam Lo
    Dec 20 at 10:14


















  • thanks a lot ^_^.
    – Sam Lo
    Dec 20 at 10:14
















thanks a lot ^_^.
– Sam Lo
Dec 20 at 10:14




thanks a lot ^_^.
– Sam Lo
Dec 20 at 10:14










Sam Lo is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Sam Lo is a new contributor. Be nice, and check out our Code of Conduct.













Sam Lo is a new contributor. Be nice, and check out our Code of Conduct.












Sam Lo is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Ask Ubuntu!


  • 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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2faskubuntu.com%2fquestions%2f1103290%2ftar-command-errors-out-tar-child-liunx-adventure-group-cannot-open-is-a-d%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

數位音樂下載

When can things happen in Etherscan, such as the picture below?

格利澤436b