{"id":11195,"date":"2020-10-19T19:27:00","date_gmt":"2020-10-19T10:27:00","guid":{"rendered":"https:\/\/mini.jellypo.pe.kr\/wp\/?p=11195"},"modified":"2020-10-22T10:28:53","modified_gmt":"2020-10-22T01:28:53","slug":"xz-%ec%9b%90%eb%b3%b8-%ec%88%98%ec%a0%95-%ec%8b%9c%ea%b0%84-%ec%9c%a0%ec%a7%80%ed%95%98%eb%a9%b0-%eb%8b%a4%eb%a5%b8-%ea%b2%bd%eb%a1%9c%eb%a1%9c-%ec%95%95%ec%b6%95","status":"publish","type":"post","link":"https:\/\/mini.jellypo.pe.kr\/wp\/?p=11195","title":{"rendered":"xz: \uc6d0\ubcf8 \ud30c\uc77c\uc758 \uc218\uc815 \uc2dc\uac04 \uc720\uc9c0\ud558\uba70  \ub2e4\ub978 \uacbd\ub85c\ub85c \uc555\ucd95"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code><code>for i in $( \/usr\/local\/bin\/fd -E '*xz' -E '*zip' -E '*gz' -E '*tgz' -p \".\/172.16.*\" -t f --changed-within '2020-08-17 00:00:00' --changed-before '2020-08-19 23:59:59' ) ;<\/code><br><code>do if &#91; -e \/data2\/$i ]; then<\/code><br>  <code>   ls -l \/data2\/$i;<\/code><br>  <code> elif &#91; -e \/data2\/$i.gz ];<\/code><br>    <code> then ls -l \/data2\/$i.gz ;<\/code><br>   <code>else<\/code><br>     <code>xz -v -T6 -c \"$i\" &gt; \"\/data2\/$i.xz\";<\/code><br>     <code>touch -d \"$(date -R -r \"$i\")\" \"\/data2\/$i.xz\";<\/code><br>   <code>fi;<\/code><br><code>done<\/code><\/code><\/pre>\n\n\n\n<p>xz \uc5d0 &#8216;-c&#8217; \uc635\uc158\uc740 \uc555\ucd95 \ud30c\uc77c\uc744 \ud45c\uc900\ucd9c\ub825\uc73c\ub85c \ubcf4\ub0b4\ub294 \uba85\ub839. &#8216;-k&#8217; \uc774 \uc6d0\ubcf8\uc744 \uc720\uc9c0\ud558\uc9c0\ub9cc \ub2e4\ub978 \uacbd\ub85c\ub85c \uc800\uc7a5\ud560 \uc218 \uc5c6\uc73c\ub2c8 &#8216;-c&#8217; \uc635\uc158\uc744 \uc4f0\uba74 \ub41c\ub2e4.<\/p>\n\n\n\n<p>\uc0dd\uc131\ud558\uace0 \ub05d\uc774\uba74 \uc88b\uaca0\ub294\ub370&#8230; \ub9cc\uc57d \ud30c\uc77c \uc218\uc815 \uc2dc\uac04 \uae30\uc900\uc73c\ub85c \uad00\ub9ac\ud558\uace0 \uc788\ub2e4\uba74 \uc6d0\ubcf8\uc758 \uc218\uc815 \uc2dc\uac04\uc744 \uac00\uc838\uc640\uc57c \ud55c\ub2e4. \uc774\ubbf8 \uc0dd\uc131\ub41c \ud30c\uc77c \uc218\uc815 \uc2dc\uac04 \uc218\uc815\uc740 &#8216;touch -d&#8217; \uc635\uc158\uc774\uace0, \uc6d0\ubcf8\uc758 \uc2dc\uac04\uc744 \uc77d\uc5b4\ub4e4\uc774\ub294\uac8c &#8216;date -r&#8217; (&#8216;-R&#8217; \uc740 \uc2dc\uac04\ud45c\uae30 \ubc29\ubc95)<\/p>\n\n\n\n<p>\ucc38\uace0\ub85c xz \uba85\ub839 \ud45c\uc900 \ucd9c\ub825\uc774 \ubcd1\ub82c\ucc98\ub9ac \ub418\uae30\ub3c4 \ud558\uace0 \uc548\ub418\uae30\ub3c4 \ud558\ub294\ub370, CentOS 6 \uae30\ubcf8 xz 4.999.9 beta \ub294 \ud45c\uc900 \ucd9c\ub825 \uc555\ucd95 \uc2dc \uc2f1\uae00 \uc2a4\ub808\ub4dc\ub85c \uc2e4\ud589. xz 5 \ub300 \ubc84\uc804\ubd80\ud130 \uba40\ud2f0 \uc2a4\ub808\ub4dc\ub85c \uc555\ucd95 \ub428\uc744 \ud655\uc778.<\/p>\n\n\n\n<p>fd \uba85\ub839\uc740 rust \ub85c \uc791\uc131\ub41c find \uba85\ub839. <a href=\"https:\/\/github.com\/sharkdp\/fd\">https:\/\/github.com\/sharkdp\/fd<\/a> \ucc38\uc870. rust \ub85c \uc791\uc131\ub41c CLI \uba85\ub839 \uc911 \uac00\uc7a5 \uc720\uc6a9\ud558\uc9c0 \uc54a\ub098 \uc2f6\ub2e4. rust command \ub294 https:\/\/news.hada.io\/topic?id=2958 \ucc38\uace0 (rust command \ub85c grep, find, du \ub97c \ub300\uccb4 \uc2dc \uba40\ud2f0 \uc2a4\ub808\ub4dc\ub85c \uc2e4\ud589\ud560 \uc218 \uc788\uc5b4\uc11c \uba87 \ubc30\uc758 \uc131\ub2a5 \ud5a5\uc0c1\uc744 \uc5bb\uc744 \uc218 \uc788\ub2e4.)<\/p>\n\n\n\n<p>\uc544\ub798\ub294 rust crates \uc5d0\uc11c command-line-utilities \ub2e4\uc6b4\ub85c\ub4dc \uc21c \uc815\ub82c\ud55c \uc8fc\uc18c.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-\uc784\ubca0\ub4dc-\ud578\ub4e4\ub7ec wp-block-embed-\uc784\ubca0\ub4dc-\ud578\ub4e4\ub7ec\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/crates.io\/categories\/command-line-utilities?sort=downloads\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-\uc784\ubca0\ub4dc-\ud578\ub4e4\ub7ec wp-block-embed-\uc784\ubca0\ub4dc-\ud578\ub4e4\ub7ec\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/zaiste.net\/posts\/shell-commands-rust\/\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>xz \uc5d0 &#8216;-c&#8217; \uc635\uc158\uc740 \uc555\ucd95 \ud30c\uc77c\uc744 \ud45c\uc900\ucd9c\ub825\uc73c\ub85c \ubcf4\ub0b4\ub294 \uba85\ub839. &#8216;-k&#8217; \uc774 \uc6d0\ubcf8\uc744 \uc720\uc9c0\ud558\uc9c0\ub9cc \ub2e4\ub978 \uacbd\ub85c\ub85c \uc800\uc7a5\ud560 \uc218 \uc5c6\uc73c\ub2c8 &#8216;-c&#8217; \uc635\uc158\uc744 \uc4f0\uba74 \ub41c\ub2e4. \uc0dd\uc131\ud558\uace0 \ub05d\uc774\uba74 \uc88b\uaca0\ub294\ub370&#8230; \ub9cc\uc57d \ud30c\uc77c \uc218\uc815 \uc2dc\uac04 \uae30\uc900\uc73c\ub85c \uad00\ub9ac\ud558\uace0 \uc788\ub2e4\uba74 \uc6d0\ubcf8\uc758 \uc218\uc815 \uc2dc\uac04\uc744 \uac00\uc838\uc640\uc57c \ud55c\ub2e4. \uc774\ubbf8 \uc0dd\uc131\ub41c \ud30c\uc77c \uc218\uc815 \uc2dc\uac04 \uc218\uc815\uc740 &#8216;touch -d&#8217; \uc635\uc158\uc774\uace0, \uc6d0\ubcf8\uc758 \uc2dc\uac04\uc744 \uc77d\uc5b4\ub4e4\uc774\ub294\uac8c &#8216;date -r&#8217; (&#8216;-R&#8217; \uc740 \uc2dc\uac04\ud45c\uae30 \ubc29\ubc95) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[86],"class_list":["post-11195","post","type-post","status-publish","format-standard","hentry","tag-gnu-linux"],"_links":{"self":[{"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/posts\/11195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11195"}],"version-history":[{"count":4,"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/posts\/11195\/revisions"}],"predecessor-version":[{"id":11203,"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/posts\/11195\/revisions\/11203"}],"wp:attachment":[{"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}