{"id":529,"date":"2020-06-03T15:35:00","date_gmt":"2020-06-03T19:35:00","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=529"},"modified":"2021-01-04T15:37:49","modified_gmt":"2021-01-04T20:37:49","slug":"tar-0511-194-reached-end-of-file-before-expected","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/tar-0511-194-reached-end-of-file-before-expected\/","title":{"rendered":"tar: 0511-194 Reached end-of-file before expected"},"content":{"rendered":"\n<p>This error is caused if the size of your file is larger than the allowed filesize. Suppose the system has a limit of 1 Gb. If you tar and zip twenty 100 Mb files, then the size of the tarred file would be approximately 2 Gb. So the system would give you this error:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tar: 0511-194 Reached end-of-file before expected<\/code><\/pre>\n\n\n\n<p>To solve this problem, you would need to increase your filesize or remove the limitation as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ vi \/etc\/security\/limits<\/code><\/pre>\n\n\n\n<p>Change fsize = -1 and save file<\/p>\n\n\n\n<p>If you don&#8217;t have permissions to make this change and the admin will not make this change, you can work around by doing a zip tar instead of a tar zip as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cd mydir\n$ gzip *.txt\n$ tar cvf myfile.gz.tar *.gz<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This error is caused if the size of your file is larger than the allowed filesize. Suppose the system has a limit of 1 Gb. If you tar and zip twenty 100 Mb files, then the size of the tarred file would be approximately 2 Gb. So the system would give you this error: To [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[35,153],"class_list":["post-529","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux","tag-tar"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/comments?post=529"}],"version-history":[{"count":1,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/529\/revisions"}],"predecessor-version":[{"id":530,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/529\/revisions\/530"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}