tar command errors out “tar (child): liunx adventure group/: Cannot open: Is a directory”
$ 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
add a comment |
$ 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
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 '18 at 7:46
it export a .tar file
– Sam Lo
Dec 20 '18 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 '18 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 '18 at 7:54
add a comment |
$ 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
$ 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
command-line tar
edited Dec 20 '18 at 17:25
Zanna
50.2k13131241
50.2k13131241
asked Dec 20 '18 at 7:43
Sam Lo
1813
1813
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 '18 at 7:46
it export a .tar file
– Sam Lo
Dec 20 '18 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 '18 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 '18 at 7:54
add a comment |
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 '18 at 7:46
it export a .tar file
– Sam Lo
Dec 20 '18 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 '18 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 '18 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 '18 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 '18 at 7:46
it export a .tar file
– Sam Lo
Dec 20 '18 at 7:48
it export a .tar file
– Sam Lo
Dec 20 '18 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 '18 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 '18 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 '18 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 '18 at 7:54
add a comment |
2 Answers
2
active
oldest
votes
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.
thanks , i know what happen now
– Sam Lo
Dec 20 '18 at 7:56
add a comment |
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/
thanks a lot ^_^.
– Sam Lo
Dec 20 '18 at 10:14
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
thanks , i know what happen now
– Sam Lo
Dec 20 '18 at 7:56
add a comment |
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.
thanks , i know what happen now
– Sam Lo
Dec 20 '18 at 7:56
add a comment |
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.
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.
edited Dec 20 '18 at 17:26
Zanna
50.2k13131241
50.2k13131241
answered Dec 20 '18 at 7:53
Holger Morgen
567
567
thanks , i know what happen now
– Sam Lo
Dec 20 '18 at 7:56
add a comment |
thanks , i know what happen now
– Sam Lo
Dec 20 '18 at 7:56
thanks , i know what happen now
– Sam Lo
Dec 20 '18 at 7:56
thanks , i know what happen now
– Sam Lo
Dec 20 '18 at 7:56
add a comment |
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/
thanks a lot ^_^.
– Sam Lo
Dec 20 '18 at 10:14
add a comment |
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/
thanks a lot ^_^.
– Sam Lo
Dec 20 '18 at 10:14
add a comment |
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/
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/
edited Dec 20 '18 at 8:08
answered Dec 20 '18 at 8:02
George Udosen
20k94267
20k94267
thanks a lot ^_^.
– Sam Lo
Dec 20 '18 at 10:14
add a comment |
thanks a lot ^_^.
– Sam Lo
Dec 20 '18 at 10:14
thanks a lot ^_^.
– Sam Lo
Dec 20 '18 at 10:14
thanks a lot ^_^.
– Sam Lo
Dec 20 '18 at 10:14
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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 '18 at 7:46
it export a .tar file
– Sam Lo
Dec 20 '18 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 '18 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 '18 at 7:54