{"id":5144,"date":"2012-05-21T19:30:56","date_gmt":"2012-05-21T12:30:56","guid":{"rendered":"http:\/\/sinaulinux.martianuswb.com\/?p=1542"},"modified":"2012-05-21T19:30:56","modified_gmt":"2012-05-21T12:30:56","slug":"terminal-split-untuk-memecah-file","status":"publish","type":"post","link":"https:\/\/martianuswb.com\/?p=5144","title":{"rendered":"Terminal: Split untuk memecah file"},"content":{"rendered":"<p>Kalau dulu saya pernah menuliskan tentang <em><strong><a href=\"http:\/\/sinaulinux.martianuswb.com\/?p=1087\" target=\"_blank\">Catenate<\/a><\/strong><\/em> atau perintah &#8220;<em><strong><a href=\"http:\/\/sinaulinux.martianuswb.com\/?p=1087\" target=\"_blank\">cat<\/a><\/strong><\/em>&#8221; yang berfungsi untuk menggabungkan file-file hasil pecahan, maka sekarang giliran perintah &#8220;split&#8221; yang berfungsi untuk memecah file besar menjadi beberapa file dengan ukuran yang kecil.<\/p>\n<p>Skenarionya begini, saya punya satu file berukuran sekitar 30 MB yang diberinama &#8220;<span style=\"color: #0000ff;\"><em><strong>filebesar.pdf<\/strong><\/em><\/span>&#8221; dan akan dipecah menjadi beberapa file kecil dengan ukuran maksimal 5 MB, jadi kemungkinan akan ada 6 file kecil. Masuk dulu ke Terminal dan ketikkan perintah<\/p>\n<blockquote><p><span style=\"color: #ff0000;\"><strong>split &#8211;bytes=5M filebesar.pdf filekecil<\/strong><\/span><\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1543\" title=\"martianus@martianus-desktop: ~_011\" src=\"http:\/\/martianuswb.com\/wp-content\/uploads\/2012\/05\/martianus@martianus-desktop-_011.png\" alt=\"\" width=\"400\" height=\"256\" \/><\/p>\n<p>Perintah ini akan memberikan kita 6 file kecil dengan nama <span style=\"color: #0000ff;\"><strong><em>filekecilaa, filekecilab, filekecilac, filekecilad, filekecilae, dan filekecilaf<\/em><\/strong><\/span>; yang masing-masing berukuran maksimal 5 MB.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1544\" title=\"martianus@martianus-desktop: ~_012\" src=\"http:\/\/martianuswb.com\/wp-content\/uploads\/2012\/05\/martianus@martianus-desktop-_012.png\" alt=\"\" width=\"400\" height=\"256\" \/><\/p>\n<p>Nah, semudah itu memecah file di Ubuntu. Kalau mau menggabungkannya tinggal menggunakan perintah &#8220;cat&#8221; yang bisa dibaca <a href=\"http:\/\/sinaulinux.martianuswb.com\/?p=1087\" target=\"_blank\"><em><strong>di sin<\/strong><\/em>i<\/a>. Atau untuk lebih mudahnya tinggal masukkan perintah<\/p>\n<blockquote><p><span style=\"color: #ff0000;\"><em><strong>cat filekecil** &gt; filebaru<\/strong><\/em><\/span><\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1545\" title=\"martianus@martianus-desktop: ~_013\" src=\"http:\/\/martianuswb.com\/wp-content\/uploads\/2012\/05\/martianus@martianus-desktop-_013.png\" alt=\"\" width=\"400\" height=\"256\" \/><\/p>\n<p>Maka akan muncul &#8220;<span style=\"color: #0000ff;\"><em><strong>filebaru<\/strong><\/em><\/span>&#8221; yang merupakan gabungan 6 file kecil tadi.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1546\" title=\"martianus@martianus-desktop: ~_014\" src=\"http:\/\/martianuswb.com\/wp-content\/uploads\/2012\/05\/martianus@martianus-desktop-_014.png\" alt=\"\" width=\"400\" height=\"256\" srcset=\"https:\/\/martianuswb.com\/wp-content\/uploads\/2012\/05\/martianus@martianus-desktop-_014.png 400w, https:\/\/martianuswb.com\/wp-content\/uploads\/2012\/05\/martianus@martianus-desktop-_014-300x192.png 300w, https:\/\/martianuswb.com\/wp-content\/uploads\/2012\/05\/martianus@martianus-desktop-_014-150x96.png 150w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>Memang untuk apa kita memecah file? Salah satunya adalah kalau file harus dikirim via surat elektronik, sementara biasanya penyedia email membatasi besarnya ukuran yang bisa diunggah.<\/p>\n<p>Selamat mencoba.<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>Kalau dulu saya pernah menuliskan tentang Catenate atau perintah &#8220;cat&#8221; yang berfungsi untuk menggabungkan file-file hasil pecahan, maka sekarang giliran perintah &#8220;split&#8221; yang berfungsi untuk memecah file besar menjadi beberapa&#8230; <a href=\"https:\/\/martianuswb.com\/?p=5144\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":4658,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[1406],"tags":[1488,1886,1919],"class_list":["post-5144","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-terminal","tag-cat","tag-split","tag-terminal"],"_links":{"self":[{"href":"https:\/\/martianuswb.com\/index.php?rest_route=\/wp\/v2\/posts\/5144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/martianuswb.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/martianuswb.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/martianuswb.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/martianuswb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5144"}],"version-history":[{"count":0,"href":"https:\/\/martianuswb.com\/index.php?rest_route=\/wp\/v2\/posts\/5144\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/martianuswb.com\/index.php?rest_route=\/wp\/v2\/media\/4658"}],"wp:attachment":[{"href":"https:\/\/martianuswb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/martianuswb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/martianuswb.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}