{"id":575,"date":"2012-08-29T16:23:57","date_gmt":"2012-08-29T07:23:57","guid":{"rendered":"http:\/\/auctionpro.co.kr\/WPress\/?p=575"},"modified":"2026-03-09T11:20:05","modified_gmt":"2026-03-09T02:20:05","slug":"tar-%ec%95%95%ec%b6%95","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=575","title":{"rendered":"tar \uc555\ucd95"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Overview : Tar \uc555\ucd95 \ud558\uae30 <\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \" title=\"tar \uc555\ucd95\">tar -cvf archive_name.tar \/var\/www\/test\/*<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\/var\/www\/test\/* \uc544\ub798 \ubaa8\ub4e0 \ud30c\uc77c \uc555\ucd95<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>-c : \uc544\uce74\uc774\ube0c \uc0dd\uc131 (\ud30c\uc77c\uc744 \ubb36\uc74c)<\/li>\n\n\n\n<li>-v : \uacfc\uc815\ubcf4\uae30<\/li>\n\n\n\n<li>-f :  \ud30c\uc77c\uc774\ub984 \uc9c0\uc815<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\uc608) my_folder \ub77c\ub294 \ud3f4\ub354\ub97c my_archive.tar  \ud30c\uc77c\ud558\ub098\ub85c  \ub2e4\uc74c\uacfc \uac19\uc774 \uc555\ucd95\ud55c\ub2e4.<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \" title=\"tar  \uc555\ucd95\">tar -cvf my_archive.tar my_folder\/<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">-X \uc635\uc158<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\uba3c\uc800, \uc81c\uc678\ud558\uace0 \uc2f6\uc740 \ud30c\uc77c\ub4e4\uc758 \ubaa9\ub85d\uc744 \ub2f4\uc740 \ud30c\uc77c\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4 (\uc608: <code>exclude.txt<\/code>).<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">tar -cvf archive_name.tar --exclude-from=exclude.txt \/path\/to\/directory<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Tar \uc555\ucd95\ud574\uc81c<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \" title=\"\ud574\uc81c\" >tar -xvf my_archive.tar.gz -C \/var\/www\/test<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\/var\/www\/test  \uacbd\ub85c \uc544\ub798\uc5d0 \uc555\ucd95 \ud480\uae30<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>-x : \ubb36\uc74c\uc744 \ud574\uc81c<\/li>\n\n\n\n<li>-c : \ud30c\uc77c\uc744 \ubb36\uc74c<\/li>\n\n\n\n<li>-v : \uc9c4\ud589\uacfc\uc815 \ud654\uba74\uc5d0 \ucd9c\ub825<\/li>\n\n\n\n<li>-f : \ud30c\uc77c \uc774\ub984\uc744 \uc9c0\uc815<\/li>\n\n\n\n<li>-C : \ud30c\uc77c\uc744 \ud480\uc5b4\ub193\uc744 \uacbd\ub85c\ub97c \uc9c0\uc815<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">2.gzip<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">.gz \ub85c \ub05d\ub098\ub294 \ud30c\uc77c\uc740 gzip\uc744 \ud1b5\ud574 \uc555\ucd95\uc774 \ub41c \ud30c\uc77c<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\uc555\ucd95\ud558\uae30<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \" title=\"\uc555\ucd95\">gzip filename<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\uc5ec\uae30\uc11c <code>filename<\/code>\uc740 \uc555\ucd95\ud558\uace0\uc790 \ud558\ub294 \ud30c\uc77c\uc758 \uc774\ub984\uc785\ub2c8\ub2e4. \uc774 \uba85\ub839\uc744 \uc2e4\ud589\ud558\uba74, <code>filename<\/code> \ud30c\uc77c\uc774 <code>filename.gz<\/code>\ub85c \uc555\ucd95\ub418\uba70 \uc6d0\ubcf8 \ud30c\uc77c\uc740 \uc0ac\ub77c\uc9d1\ub2c8\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\uc555\ucd95\ud574\uc81c<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">gunzip filename.gz\n\ub610\ub294\ngzip -d filename.gz<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Overview : Tar \uc555\ucd95 \ud558\uae30 \/var\/www\/test\/* \uc544\ub798 \ubaa8\ub4e0 \ud30c\uc77c \uc555\ucd95 \uc608) my_folder \ub77c\ub294 \ud3f4\ub354\ub97c my_archive.tar \ud30c\uc77c\ud558\ub098\ub85c \ub2e4\uc74c\uacfc \uac19\uc774 \uc555\ucd95\ud55c\ub2e4. -X \uc635\uc158 \uba3c\uc800, \uc81c\uc678\ud558\uace0 \uc2f6\uc740 \ud30c\uc77c\ub4e4\uc758 <a class=\"mh-excerpt-more\" href=\"https:\/\/www.auctionpro.co.kr\/?p=575\" title=\"tar \uc555\ucd95\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-575","post","type-post","status-publish","format-standard","hentry","category-centos"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/575","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=575"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/575\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}