{"id":2887,"date":"2021-07-19T22:04:17","date_gmt":"2021-07-19T15:04:17","guid":{"rendered":"http:\/\/rachmadona.net\/?p=2887"},"modified":"2021-07-19T22:04:17","modified_gmt":"2021-07-19T15:04:17","slug":"resolve-tar-child-bzip2-cannot-exec-no-such-file-or-directory","status":"publish","type":"post","link":"https:\/\/rachmadona.net\/?p=2887","title":{"rendered":"Resolve tar (child) : bzip2: Cannot exec: No such file or directory"},"content":{"rendered":"\n<p>During the RHEL exam i found an error when i tried to compress a folder using &#8220;tar&#8221; command. It says &#8220;No such file or directory&#8221; but i believe the folder is there and the location is valid.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/rachmadona.net\/wp-content\/uploads\/2020\/09\/image-4.png\" alt=\"\" class=\"wp-image-2888\"\/><\/figure>\n\n\n\n<p>Quickly i realized that the component belong to it&#8217;s command not yet installed: bzip2 (since it is using bzip2 as one of the feature to compress). So i just simply installed the package using yum command.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/rachmadona.net\/wp-content\/uploads\/2020\/09\/image-5.png\" alt=\"\" class=\"wp-image-2889\"\/><\/figure>\n\n\n\n<p>Then i retried using the same command, it went work<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/rachmadona.net\/wp-content\/uploads\/2020\/09\/image-6.png\" alt=\"\" class=\"wp-image-2890\"\/><\/figure>\n\n\n\n<p>The zipped file is there.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/rachmadona.net\/wp-content\/uploads\/2020\/09\/image-7.png\" alt=\"\" class=\"wp-image-2891\"\/><\/figure>\n\n\n\n<p>Let&#8217;s verify.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/rachmadona.net\/wp-content\/uploads\/2020\/09\/image-8.png\" alt=\"\" class=\"wp-image-2892\"\/><\/figure>\n\n\n\n<p>Cool it works as per expectation!<\/p>\n\n\n\n<p>Voila!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>During the RHEL exam i found an error when i tried to compress a folder using &#8220;tar&#8221; command. It says &#8220;No such file or directory&#8221; but i believe the folder is there and the location is valid. Quickly i realized that the component belong to it&#8217;s command not yet installed: bzip2 (since it is using&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,13],"tags":[100,119,162,294,426],"class_list":["post-2887","post","type-post","status-publish","format-standard","hentry","category-linux","category-operating-system","tag-bzip2","tag-compress-file-folder","tag-error","tag-no-such-file-or-directory","tag-tar"],"_links":{"self":[{"href":"https:\/\/rachmadona.net\/index.php?rest_route=\/wp\/v2\/posts\/2887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rachmadona.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rachmadona.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rachmadona.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rachmadona.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2887"}],"version-history":[{"count":0,"href":"https:\/\/rachmadona.net\/index.php?rest_route=\/wp\/v2\/posts\/2887\/revisions"}],"wp:attachment":[{"href":"https:\/\/rachmadona.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rachmadona.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rachmadona.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}