{"id":245,"date":"2025-05-19T07:41:21","date_gmt":"2025-05-19T07:41:21","guid":{"rendered":"https:\/\/blog.chaiyakul.com\/?p=245"},"modified":"2025-05-19T07:41:45","modified_gmt":"2025-05-19T07:41:45","slug":"zip-centos","status":"publish","type":"post","link":"https:\/\/blog.chaiyakul.com\/index.php\/2025\/05\/19\/zip-centos\/","title":{"rendered":"\u0e41\u0e15\u0e01\u0e44\u0e1f\u0e25\u0e4c\u0e41\u0e25\u0e30\u0e1a\u0e35\u0e1a\u0e44\u0e1f\u0e25\u0e4c ZIP \u0e1a\u0e19 CentOS"},"content":{"rendered":"\n<p><u><strong>\u0e41\u0e15\u0e01\u0e44\u0e1f\u0e25\u0e4c<\/strong><\/u><\/p>\n\n\n\n<p>\u0e1a\u0e19 CentOS \u0e2b\u0e32\u0e01\u0e04\u0e38\u0e13\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e41\u0e15\u0e01\u0e44\u0e1f\u0e25\u0e4c <code>.zip<\/code> \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e43\u0e19 Terminal \u0e44\u0e14\u0e49\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49:<\/p>\n\n\n\n<p>1. \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 <code>unzip<\/code> (\u0e2b\u0e32\u0e01\u0e22\u0e31\u0e07\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07)<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo yum install unzip\n<\/pre><\/div>\n\n\n<p>2. \u0e41\u0e15\u0e01\u0e44\u0e1f\u0e25\u0e4c <code>.zip<\/code><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nunzip filename.zip\n<\/pre><\/div>\n\n\n<p>\u0e42\u0e14\u0e22\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19 <code>filename.zip<\/code> \u0e40\u0e1b\u0e47\u0e19\u0e0a\u0e37\u0e48\u0e2d\u0e44\u0e1f\u0e25\u0e4c\u0e08\u0e23\u0e34\u0e07<\/p>\n\n\n\n<p><strong>\u0e15\u0e31\u0e27\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21\u0e02\u0e2d\u0e07 <code>unzip<\/code>:<\/strong><\/p>\n\n\n\n<p>\u0e41\u0e15\u0e01\u0e44\u0e1f\u0e25\u0e4c\u0e44\u0e1b\u0e22\u0e31\u0e07\u0e42\u0e1f\u0e25\u0e40\u0e14\u0e2d\u0e23\u0e4c\u0e17\u0e35\u0e48\u0e23\u0e30\u0e1a\u0e38:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nunzip filename.zip -d \/path\/to\/directory\/\n<\/pre><\/div>\n\n\n<p>\u0e41\u0e2a\u0e14\u0e07\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e44\u0e1f\u0e25\u0e4c\u0e43\u0e19 <code>.zip<\/code> \u0e42\u0e14\u0e22\u0e44\u0e21\u0e48\u0e41\u0e15\u0e01\u0e44\u0e1f\u0e25\u0e4c:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nunzip -l filename.zip\n<\/pre><\/div>\n\n\n<p><u><strong>\u0e1a\u0e35\u0e1a\u0e44\u0e1f\u0e25\u0e4c<\/strong><\/u><\/p>\n\n\n\n<p>\u0e04\u0e38\u0e13\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e1a\u0e35\u0e1a\u0e2d\u0e31\u0e14\u0e44\u0e1f\u0e25\u0e4c\u0e2b\u0e23\u0e37\u0e2d\u0e42\u0e1f\u0e25\u0e40\u0e14\u0e2d\u0e23\u0e4c\u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19 <code>.zip<\/code> \u0e1a\u0e19 CentOS \u0e44\u0e14\u0e49\u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 <code>zip<\/code> \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49:<\/p>\n\n\n\n<p>1. <strong>\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 <code>zip<\/code> (\u0e16\u0e49\u0e32\u0e22\u0e31\u0e07\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07)<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo yum install zip\n<\/pre><\/div>\n\n\n<p>2. <strong>\u0e1a\u0e35\u0e1a\u0e2d\u0e31\u0e14\u0e44\u0e1f\u0e25\u0e4c\u0e40\u0e14\u0e35\u0e48\u0e22\u0e27\u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19 zip<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nzip archive.zip filename.txt\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li><code>archive.zip<\/code> \u0e04\u0e37\u0e2d\u0e0a\u0e37\u0e48\u0e2d\u0e44\u0e1f\u0e25\u0e4c zip \u0e17\u0e35\u0e48\u0e08\u0e30\u0e2a\u0e23\u0e49\u0e32\u0e07<\/li>\n\n\n\n<li><code>filename.txt<\/code> \u0e04\u0e37\u0e2d\u0e44\u0e1f\u0e25\u0e4c\u0e15\u0e49\u0e19\u0e09\u0e1a\u0e31\u0e1a<\/li>\n<\/ul>\n\n\n\n<p>3. <strong>\u0e1a\u0e35\u0e1a\u0e2d\u0e31\u0e14\u0e2b\u0e25\u0e32\u0e22\u0e44\u0e1f\u0e25\u0e4c\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e01\u0e31\u0e19<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nzip archive.zip file1.txt file2.txt file3.txt\n<\/pre><\/div>\n\n\n<p>4. <strong>\u0e1a\u0e35\u0e1a\u0e2d\u0e31\u0e14\u0e42\u0e1f\u0e25\u0e40\u0e14\u0e2d\u0e23\u0e4c (\u0e23\u0e27\u0e21\u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e20\u0e32\u0e22\u0e43\u0e19\u0e14\u0e49\u0e27\u0e22)<\/strong><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nzip -r archive.zip foldername\/\n<\/pre><\/div>\n\n\n<p><code>-r<\/code> \u0e2b\u0e21\u0e32\u0e22\u0e16\u0e36\u0e07 recursive \u0e04\u0e37\u0e2d\u0e1a\u0e35\u0e1a\u0e2d\u0e31\u0e14\u0e17\u0e31\u0e49\u0e07\u0e42\u0e1f\u0e25\u0e40\u0e14\u0e2d\u0e23\u0e4c\u0e41\u0e25\u0e30\u0e40\u0e19\u0e37\u0e49\u0e2d\u0e2b\u0e32\u0e20\u0e32\u0e22\u0e43\u0e19<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e41\u0e15\u0e01\u0e44\u0e1f\u0e25\u0e4c \u0e1a\u0e19 CentOS \u0e2b\u0e32\u0e01\u0e04\u0e38\u0e13\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e41\u0e15\u0e01\u0e44\u0e1f\u0e25\u0e4c .zip \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e04\u0e33 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":0,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","footnotes":""},"categories":[105,9],"tags":[],"class_list":["post-245","post","type-post","status-publish","format-standard","hentry","category-centos","category-linux"],"_links":{"self":[{"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/posts\/245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/comments?post=245"}],"version-history":[{"count":1,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/posts\/245\/revisions"}],"predecessor-version":[{"id":246,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/posts\/245\/revisions\/246"}],"wp:attachment":[{"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/media?parent=245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/categories?post=245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/tags?post=245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}