{"id":2026,"date":"2023-02-09T00:37:13","date_gmt":"2023-02-08T15:37:13","guid":{"rendered":"https:\/\/www.itchefblog.com\/?p=2026"},"modified":"2023-02-09T12:08:13","modified_gmt":"2023-02-09T03:08:13","slug":"linux-console%ec%97%90%ec%84%9c-%ed%8a%b9%ec%a0%95-%ed%8c%8c%ec%9d%bc%ec%9d%84-%ec%a0%9c%ec%99%b8%ed%95%98%ea%b3%a0-%eb%aa%a8%eb%91%90-%ec%82%ad%ec%a0%9c%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/www.itchefblog.com\/?p=2026","title":{"rendered":"Linux console\uc5d0\uc11c \ud2b9\uc815 \ud30c\uc77c\uc744 \uc81c\uc678\ud558\uace0 \ubaa8\ub450 \uc0ad\uc81c\ud558\uae30"},"content":{"rendered":"\n<p>\ud2b9\uc815 \ud30c\uc77c\ub9cc \uc0ad\uc81c\ud558\ub294 \uac83\uc740 rm -rf file_name\uacfc \uac19\uc774 \ub9ce\uc774 \uc0ac\uc6a9\ud558\ub294\ub370,<br>\ud2b9\uc815 \ud30c\uc77c\ub9cc \uc81c\uc678\ud558\uace0 \ubaa8\ub450 \uc0ad\uc81c\ud558\ub294 \ucf00\uc774\uc2a4\ub294 \ub9ce\uc9c0 \uc54a\uc544\uc11c \ud574\ubcf8\uc801\uc774 \uc5c6\ub294\ub370 \uadf8 \uc77c\uc774 \ubc8c\uc5b4\uc84c\ub2e4.<br>find \ub97c \ud65c\uc6a9\ud55c \ubc29\ubc95\uc774\uc5c8\uace0, \ub355\ubd84\uc5d0 \uc0c8\ub85c\uc6b4 \uc0ac\uc2e4\uc744 \ud558\ub098 \ub354 \uc54c\uac8c \ub418\uc5c8\ub2e4.<\/p>\n\n\n\n<p>find -maxdepth 1 ! -name &#8216;file1 ! -name &#8216;file2&#8217; ! -name . -exec rm -rv {} \\;<\/p>\n\n\n\n<p>\uc774\ub807\uac8c \ud558\uba74 depth 1\uc774\ub0b4\uc758 \ud30c\uc77c\uba70ddl file1, file2\uac00 \uc544\ub2cc \ubaa8\ub4e0 \ud30c\uc77c\uc744 \uc0ad\uc81c\ud560 \uc218 \uc788\ub2e4.<br>\ub9c8\uc9c0\ub9c8rdp ! -name . \uc774 \uc788\ub294 \ubd80\ubd84\uc5d0 \uc9d1\uc911.<br>. \uc744 \uc0ad\uc81c\ud558\uba74 \uc548\ub418\ub2c8\uae4c&#8230; (\uc548\ud574\ubd10\uc11c \uc800\uac78 \ube7c\uba74 .\/\uc774 \uc601\ud5a5\uc744 \ubc1b\ub294\uc9c0\ub294 \ubaa8\ub974\uaca0\ub2e4.)<br><br><br><a rel=\"noreferrer noopener\" href=\"https:\/\/unix.stackexchange.com\/questions\/299964\/how-to-delete-all-except-for-some-specific-folder-under-parent-folder\" data-type=\"URL\" data-id=\"https:\/\/unix.stackexchange.com\/questions\/299964\/how-to-delete-all-except-for-some-specific-folder-under-parent-folder\" target=\"_blank\">\ucc38\uace0\ub9c1<\/a><a href=\"https:\/\/unix.stackexchange.com\/questions\/299964\/how-to-delete-all-except-for-some-specific-folder-under-parent-folder\" data-type=\"URL\" data-id=\"https:\/\/unix.stackexchange.com\/questions\/299964\/how-to-delete-all-except-for-some-specific-folder-under-parent-folder\" target=\"_blank\" rel=\"noreferrer noopener\">\ud06c<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud2b9\uc815 \ud30c\uc77c\ub9cc \uc0ad\uc81c\ud558\ub294 \uac83\uc740 rm -rf file_name\uacfc \uac19\uc774 \ub9ce\uc774 \uc0ac\uc6a9\ud558\ub294\ub370,\ud2b9\uc815 \ud30c\uc77c\ub9cc \uc81c\uc678\ud558\uace0 \ubaa8\ub450 \uc0ad\uc81c\ud558\ub294 \ucf00\uc774\uc2a4\ub294 \ub9ce\uc9c0 \uc54a\uc544\uc11c \ud574\ubcf8\uc801\uc774 \uc5c6\ub294\ub370 \uadf8 \uc77c\uc774 \ubc8c\uc5b4\uc84c\ub2e4.find \ub97c \ud65c\uc6a9\ud55c \ubc29\ubc95\uc774\uc5c8\uace0, \ub355\ubd84\uc5d0 \uc0c8\ub85c\uc6b4 \uc0ac\uc2e4\uc744 \ud558\ub098 \ub354 \uc54c\uac8c \ub418\uc5c8\ub2e4. find -maxdepth 1 ! -name &#8216;file1 ! -name &#8216;file2&#8217; ! -name . -exec rm -rv {} \\; \uc774\ub807\uac8c \ud558\uba74 depth 1\uc774\ub0b4\uc758 \ud30c\uc77c\uba70ddl file1, &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[818,819,820,821,822,823,824],"_links":{"self":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2026"}],"collection":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2026"}],"version-history":[{"count":2,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2026\/revisions"}],"predecessor-version":[{"id":2028,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2026\/revisions\/2028"}],"wp:attachment":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}