{"id":165,"date":"2026-05-12T22:25:00","date_gmt":"2026-05-12T14:25:00","guid":{"rendered":"https:\/\/junai.ai\/blog\/linux-file-commands-6\/"},"modified":"2026-05-12T22:25:00","modified_gmt":"2026-05-12T14:25:00","slug":"linux-file-commands-6","status":"publish","type":"post","link":"https:\/\/junai.ai\/blog\/linux-file-commands-6\/","title":{"rendered":"\ub9ac\ub205\uc2a4 \ud30c\uc77c \uba85\ub839\uc5b4 \u2014 cp\u00b7mv\u00b7rm\u00b7find \uc548\uc804\ud558\uac8c (6\ud3b8)"},"content":{"rendered":"\n<!-- WordPress REST API \ubc1c\ud589\uc6a9 HTML (\uc790\ub3d9 \uc0dd\uc131) -->\n<!-- WP-FEATURED-MEDIA-ID: 154 -->\n<div style=\"max-width:800px;margin:0 auto;\">\n<style>\n:root{\n  --color-primary:#1e40af;--color-accent:#3b82f6;--color-bg:#fafafa;--color-bg-card:#ffffff;\n  --color-text:#1e293b;--color-text-muted:#64748b;--hero-start:#0f172a;--hero-end:#1e40af;\n  --font-body:-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Noto Sans KR',sans-serif;\n  --size-body:17px;--line-height:1.75;--h1-size:33px;--h2-size:27px;--h3-size:20px;\n}\n*{margin:0;padding:0;box-sizing:border-box;}\n.wrap{max-width:760px;margin:0 auto;padding:0 20px;}\n.hero{background:linear-gradient(135deg,var(--hero-start) 0%,var(--hero-end) 100%);color:#fff;padding:64px 0 56px;text-align:center;}\n.hero .eyebrow{display:inline-block;font-size:13px;letter-spacing:1px;text-transform:uppercase;color:#93c5fd;font-weight:700;margin-bottom:16px;}\n.hero h1{font-size:var(--h1-size);line-height:1.32;letter-spacing:-0.3px;font-weight:800;margin-bottom:18px;}\n.hero p.sub{font-size:18px;color:#cbd5e1;max-width:620px;margin:0 auto;}\n.hero .meta{margin-top:22px;font-size:14px;color:#94a3b8;}\n.hero-img{display:block;width:100%;height:auto;}\narticle{padding:48px 0 24px;}\narticle h2{font-size:var(--h2-size);line-height:1.35;letter-spacing:-0.3px;font-weight:800;margin:48px 0 18px;padding-left:14px;border-left:5px solid var(--color-primary);}\narticle h2:first-of-type{margin-top:8px;}\narticle h3{font-size:var(--h3-size);font-weight:700;margin:28px 0 10px;color:#0f172a;}\narticle p{margin:0 0 18px;}\narticle ul,article ol{margin:0 0 18px 4px;padding-left:22px;}\narticle li{margin-bottom:9px;}\narticle strong{color:#0f172a;font-weight:700;}\narticle a{color:var(--color-primary);text-decoration:underline;text-underline-offset:2px;}\narticle code{background:#0f172a;color:#e2e8f0;padding:2px 7px;border-radius:5px;font-size:0.9em;font-family:'SF Mono',Menlo,Consolas,monospace;}\n.intro p:first-child{font-size:19px;color:#334155;}\n.notice{background:#eef2ff;border:1px solid #c7d2fe;border-radius:10px;padding:14px 18px;margin:0 0 30px;font-size:15px;color:#3730a3;}\n.notice b{color:#312e81;}\n.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:22px 0;}\ntable{width:100%;border-collapse:collapse;font-size:15px;background:var(--color-bg-card);}\nth,td{padding:11px 12px;text-align:left;border-bottom:1px solid #e2e8f0;vertical-align:top;}\nth{background:#f1f5f9;font-weight:700;color:#0f172a;}\ntd:first-child,th:first-child{font-weight:700;}\n@media (max-width:560px){\n  .tablewrap table,.tablewrap thead,.tablewrap tbody,.tablewrap tr,.tablewrap th,.tablewrap td{display:block;width:auto;}\n  .tablewrap thead{display:none;}\n  .tablewrap tr{margin:0 0 14px;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden;}\n  .tablewrap td{border:none;border-bottom:1px solid #f1f5f9;padding:9px 14px;}\n  .tablewrap td:first-child{background:#f1f5f9;font-weight:800;font-size:15.5px;}\n  .tablewrap td:last-child{border-bottom:none;}\n  .tablewrap td[data-label]::before{content:attr(data-label) \" \u2014 \";font-weight:700;color:var(--color-primary);}\n}\n.databox{background:#eff6ff;border-left:4px solid var(--color-accent);border-radius:0 8px 8px 0;padding:16px 18px;margin:20px 0;font-size:15.5px;}\n.databox b{color:var(--color-primary);}\n.warnbox{background:linear-gradient(135deg,#fef2f2 0%,#fee2e2 100%);border:1px solid #fecaca;border-radius:10px;padding:16px 18px;margin:22px 0;font-size:15.5px;color:#7f1d1d;}\n.warnbox b{color:#991b1b;}\n.cmd{background:#0f172a;color:#e2e8f0;border-radius:10px;padding:14px 16px;margin:14px 0;font-family:'SF Mono',Menlo,Consolas,monospace;font-size:14px;line-height:1.8;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:pre-wrap;}\n.cmd .c{color:#7dd3fc;}\n.cmd .o{color:#94a3b8;}\n.cmd .w{color:#fca5a5;}\n.roadmap{background:var(--color-bg-card);border:1px solid #e2e8f0;border-radius:12px;padding:18px 20px;margin:24px 0;font-size:15px;}\n.roadmap h3{margin:0 0 10px;font-size:17px;color:#0f172a;}\n.roadmap ol{margin:0 0 0 4px;padding-left:20px;}\n.roadmap li{margin-bottom:5px;color:#475569;}\n.cta{background:#0f172a;color:#e2e8f0;border-radius:14px;padding:26px 24px;margin:40px 0 8px;text-align:center;}\n.cta h3{color:#fff;margin:0 0 8px;font-size:19px;}\n.cta p{margin:0 0 4px;font-size:15px;color:#cbd5e1;}\nfooter{padding:30px 0 50px;text-align:center;color:var(--color-text-muted);font-size:13.5px;}\n@media (max-width:480px){:root{--h1-size:23px;--h2-size:20px;--size-body:16px;}.hero{padding:48px 0 40px;}article{padding:34px 0 16px;}.cmd{font-size:12.5px;}}\n<\/style>\n<header class=\"hero\">\n  <div class=\"wrap\">\n    <span class=\"eyebrow\">\uc6b0\ubd84\ud22c \u00b7 \ub9ac\ub205\uc2a4 \uc785\ubb38 \u2014 6\ud3b8 (\uae30\ucd08)<\/span>\n    <h1>\ub9ac\ub205\uc2a4 \ud30c\uc77c \uba85\ub839\uc5b4 \u2014 cp\u00b7mv\u00b7rm\u00b7find \uc548\uc804\ud558\uac8c<\/h1>\n    <p class=\"sub\">\uc774\uc81c \uc9c4\uc9dc\ub85c \ud30c\uc77c\uc744 \ub2e4\ub8f9\ub2c8\ub2e4 \u2014 \ub9cc\ub4e4\uace0, \ubcf5\uc0ac\ud558\uace0, \uc62e\uae30\uace0, \uc9c0\uc6b0\uace0, \ucc3e\uace0. \uadf8\ub9ac\uace0 \ud55c \ubc88 \uc798\ubabb \ub204\ub974\uba74 \ub05d\uc778 \uba85\ub839 \ud558\ub098\ub97c \ud53c\ud558\ub294 \ubc95.<\/p>\n    <p class=\"meta\">2026\ub144 5\uc6d4 12\uc77c \u00b7 \uc57d 8\ubd84 \u00b7 26\ud3b8 \uc785\ubb38 \uc2dc\ub9ac\uc988 6\ud3b8<\/p>\n  <\/div>\n<\/header>\n\n<img decoding=\"async\" class=\"hero-img\" src=\"https:\/\/junai.ai\/blog\/wp-content\/uploads\/2026\/05\/hero-9.jpg\" alt=\"\ud130\ubbf8\ub110\uc5d0\uc11c \ud30c\uc77c\uc744 \ubcf5\uc0ac\u00b7\uc774\ub3d9\u00b7\uc0ad\uc81c\ud558\ub294 \uba85\ub839\uc5b4\uac00 \ubcf4\uc774\ub294 \ud654\uba74 \u2014 \ub9ac\ub205\uc2a4 \ud30c\uc77c \uba85\ub839\uc5b4\ub97c \uc0c1\uc9d5\ud558\ub294 \uc77c\ub7ec\uc2a4\ud2b8\">\n\n<div class=\"wrap\">\n<article>\n\n  <div class=\"intro\">\n    <p>1~5\ud3b8\uc73c\ub85c \uc6b0\ubd84\ud22c\ub97c \uae54\uace0, \uc124\uc815\ud558\uace0, \ud130\ubbf8\ub110\uc744 \uc5f4\uace0, \ud3f4\ub354 \uc9c0\ub3c4\uae4c\uc9c0 \uc190\uc5d0 \uc950\uc5c8\uc2b5\ub2c8\ub2e4. \uc9c0\uae08\uae4c\uc9c0\ub294 &#8220;\ubcf4\uae30\ub9cc&#8221; \ud588\uc5b4\uc694 \u2014 <code>pwd<\/code>, <code>ls<\/code>, <code>cd<\/code>. 6\ud3b8\ubd80\ud130\ub294 <strong>\uc2e4\uc81c\ub85c \ub9cc\uc9c0\uc791\uac70\ub9bd\ub2c8\ub2e4<\/strong>: \ud30c\uc77c\uc744 \ub9cc\ub4e4\uace0(<code>touch<\/code>\u00b7<code>mkdir<\/code>), \ubcf5\uc0ac\ud558\uace0(<code>cp<\/code>), \uc62e\uae30\uace0(<code>mv<\/code>), \uc9c0\uc6b0\uace0(<code>rm<\/code>), \ucc3e\uace0(<code>find<\/code>).<\/p>\n    <p>\ub531 \ud558\ub098, \uc774 \ud3b8\uc5d0\uc11c \uc815\ub9d0 \uc9c4\uc9c0\ud558\uac8c \ub2e4\ub8f0 \uac8c \uc788\uc5b4\uc694 \u2014 <code>rm<\/code>. \uc708\ub3c4\uc6b0\uc758 \ud734\uc9c0\ud1b5 \uac19\uc740 \uc548\uc804\ub9dd\uc774 <strong>\uae30\ubcf8\uc801\uc73c\ub85c \uc5c6\uc2b5\ub2c8\ub2e4<\/strong>. \uadf8\ub798\uc11c \uc2dc\uc791 \uc804\uc5d0 &#8220;\uc548\uc804 \uadf8\ubb3c&#8221;\ubd80\ud130 \uae54\uace0, \uba85\ub839\uc5b4\ub97c \ubc30\uc6b0\uace0, \ub9c8\uc9c0\ub9c9\uc5d0 &#8220;\uc774\uac74 \uc808\ub300 \ud568\ubd80\ub85c \uce58\uc9c0 \ub9c8\ub77c&#8221;\ub97c \ubabb \ubc15\uc2b5\ub2c8\ub2e4. <strong>26\ud3b8 \uc785\ubb38 \uc2dc\ub9ac\uc988 6\ud3b8<\/strong>, \uc5ec\uae30\uc11c\ubd80\ud130 &#8220;\uae30\ucd08&#8221; \ubb36\uc74c\uc785\ub2c8\ub2e4.<\/p>\n  <\/div>\n\n  <div class=\"notice\">\n    <b>\uc900\ube44\ubb3c \u2014<\/b> \uc6b0\ubd84\ud22c\uac00 \ucf1c\uc838 \uc788\uace0 \ud130\ubbf8\ub110\uc744 \uc5f4 \uc904 \uc54c\uba74 \ub429\ub2c8\ub2e4(4\ud3b8 \ucc38\uace0). \uac00\uc0c1 \uba38\uc2e0\uc774\uba74 \ub9c8\uc74c \ub193\uace0 \uc2e4\uc218\ud574\ub3c4 \ub3fc\uc694. \uc774 \uae00\uc758 \uc2e4\uc2b5\uc740 <b>\uc804\ubd80 \uc0c8\ub85c \ub9cc\ub4e0 \uc5f0\uc2b5 \ud3f4\ub354 \uc548\uc5d0\uc11c\ub9cc<\/b> \ud569\ub2c8\ub2e4.\n  <\/div>\n\n  <h2>\uc2dc\uc791 \uc804 \u2014 \uc548\uc804 \uadf8\ubb3c \ub450 \uac1c<\/h2>\n  <p>\ubcf8\uaca9\uc801\uc73c\ub85c \uac00\uae30 \uc804\uc5d0 \ub450 \uac00\uc9c0\ub97c \ud574\ub461\ub2c8\ub2e4. \ubcc4\uac70 \uc544\ub2cc\ub370, \uc774\uac8c &#8220;\uc2e4\uc218\ud574\ub3c4 \uad1c\ucc2e\uc740 \ud658\uacbd&#8221;\uc744 \ub9cc\ub4e4\uc5b4\uc90d\ub2c8\ub2e4.<\/p>\n  <h3>\u2460 \uc5f0\uc2b5 \uc804\uc6a9 \ud3f4\ub354 \ub9cc\ub4e4\uace0, \uac70\uae30\uc11c\ub9cc \uc791\uc5c5<\/h3>\n  <div class=\"cmd\"><span class=\"c\">$<\/span> cd ~\n<span class=\"c\">$<\/span> mkdir -p ~\/linux-practice\n<span class=\"c\">$<\/span> cd ~\/linux-practice\n<span class=\"c\">$<\/span> pwd\n<span class=\"o\">\/home\/jspark\/linux-practice    \u2190 \uc55e\uc73c\ub85c \ubaa8\ub4e0 \uc2e4\uc2b5\uc740 \uc5ec\uae30\uc11c\ub9cc<\/span><\/div>\n  <p><code>mkdir -p<\/code>\uc758 <code>-p<\/code>\ub294 &#8220;\uc911\uac04 \ud3f4\ub354\uac00 \uc5c6\uc73c\uba74 \uac19\uc774 \ub9cc\ub4e4\uace0, \uc774\ubbf8 \uc788\uc5b4\ub3c4 \uc5d0\ub7ec \uc548 \ub0c4&#8221;\uc774\ub77c\ub294 \ub73b\uc774\uc5d0\uc694(\uc608: <code>mkdir -p a\/b\/c<\/code>\uba74 a, a\/b, a\/b\/c\ub97c \ud55c \ubc88\uc5d0). \uc774 \ud3f4\ub354 \uc548\uc774\ub77c\uba74 \ubb58 \uc9c0\uc6b0\ub4e0 \uc2dc\uc2a4\ud15c\uc5d4 \uc601\ud5a5\uc774 \uc5c6\uc2b5\ub2c8\ub2e4.<\/p>\n  <h3>\u2461 rm \ub300\uc2e0 &#8216;trash&#8217;\ub97c \uae54\uc544\ub450\uba74 \ub9c8\uc74c\uc774 \ud3b8\ud558\ub2e4 (\uc120\ud0dd)<\/h3>\n  <p><code>rm<\/code>\uc740 \uc989\uc2dc \uc601\uad6c \uc0ad\uc81c\uc608\uc694. \uc785\ubb38 \ub2e8\uacc4\uc5d0\uc120 <strong>trash-cli<\/strong>\ub97c \uae54\uc544 &#8220;\ud734\uc9c0\ud1b5\uc73c\ub85c \ubcf4\ub0b4\ub294&#8221; \uc2b5\uad00\uc744 \ub4e4\uc5ec\ub3c4 \uc88b\uc2b5\ub2c8\ub2e4:<\/p>\n  <div class=\"cmd\"><span class=\"c\">$<\/span> sudo apt install trash-cli\n<span class=\"c\">$<\/span> trash-put \ud30c\uc77c\uc774\ub984    <span class=\"o\"># rm \ub300\uc2e0 \u2014 \ud734\uc9c0\ud1b5\uc73c\ub85c. &#8216;trash-list&#8217;\ub85c \ud655\uc778, &#8216;trash-restore&#8217;\ub85c \ubcf5\uad6c<\/span><\/div>\n  <p>\ud544\uc218\ub294 \uc544\ub2c8\uc5d0\uc694. \ub2e4\ub9cc &#8220;\ub418\ub3cc\ub9b4 \uc218 \uc5c6\ub2e4&#8221;\ub294 \uac8c \ubd80\ub2f4\ub418\uba74 \uc774 \uc548\uc804\ub9dd\uc744 \ub450\ub294 \uac70\uc8e0. \uc544\ub798 \uc2e4\uc2b5\uc5d0\uc120 \uc124\uba85\uc744 \uc704\ud574 <code>rm<\/code>\uc744 \uc4f0\uc9c0\ub9cc, \ud3c9\uc18c\uc5d4 \ub458 \uc911 \ud3b8\ud55c \uac78 \uace0\ub974\uc138\uc694.<\/p>\n\n  <h2>\ub9cc\ub4e4\uace0 \ubcf4\uae30 \u2014 touch \u00b7 mkdir \u00b7 ls \uc635\uc158<\/h2>\n  <p>\uba3c\uc800 \uc2e4\uc2b5\uc6a9 \ud30c\uc77c\u00b7\ud3f4\ub354 \uba87 \uac1c\ub97c \ub9cc\ub4ed\ub2c8\ub2e4. (\uc704\uc5d0\uc11c \ub9cc\ub4e0 <code>~\/linux-practice<\/code> \uc548\uc5d0\uc11c \ud558\uc138\uc694.)<\/p>\n  <div class=\"cmd\"><span class=\"c\">$<\/span> touch a.txt b.txt c.log\n<span class=\"o\">                       \u2190 \ube48 \ud30c\uc77c 3\uac1c \uc0dd\uc131 (touch: \ud30c\uc77c\uc774 \uc5c6\uc73c\uba74 \ub9cc\ub4e4\uace0, \uc788\uc73c\uba74 \uc218\uc815 \uc2dc\uac01\ub9cc \uac31\uc2e0)<\/span>\n<span class=\"c\">$<\/span> mkdir docs images\n<span class=\"o\">                       \u2190 \ud3f4\ub354 2\uac1c \uc0dd\uc131<\/span>\n<span class=\"c\">$<\/span> ls\n<span class=\"o\">a.txt  b.txt  c.log  docs  images<\/span>\n<span class=\"c\">$<\/span> ls -l\n<span class=\"o\">-rw-r&#8211;r&#8211; 1 jspark jspark 0 &#8230; a.txt   \u2190 -l: \ud06c\uae30\u00b7\ub0a0\uc9dc\u00b7\uad8c\ud55c\uae4c\uc9c0 \ud55c \uc904\uc529<\/span>\n<span class=\"c\">$<\/span> ls -lah\n<span class=\"o\">                       \u2190 -a \uc228\uae40\uae4c\uc9c0, -h \ud06c\uae30\ub97c \uc0ac\ub78c\uc774 \uc77d\uae30 \uc88b\uac8c(KB\u00b7MB). \uc790\uc8fc \uc4f0\ub294 \uc870\ud569: ls -lah<\/span><\/div>\n  <p><code>ls<\/code>\uc758 \uc635\uc158\uc740 \ubd99\uc5ec \uc4f8 \uc218 \uc788\uc5b4\uc694(<code>-l -a -h<\/code> = <code>-lah<\/code>). \uc774\uac8c \ub9ac\ub205\uc2a4 \uba85\ub839\uc5b4\uc758 \uacf5\ud1b5 \ubb38\ubc95\uc785\ub2c8\ub2e4 \u2014 <strong>\uba85\ub839 + \uc635\uc158(-\ub85c \uc2dc\uc791) + \ub300\uc0c1<\/strong>. \uc678\uc6b8 \uac74 <code>ls -lah<\/code> \uc815\ub3c4\uba74 \ucda9\ubd84\ud574\uc694.<\/p>\n\n  <h2>\ubcf5\uc0ac\uc640 \uc774\ub3d9 \u2014 cp \u00b7 mv<\/h2>\n  <p>\uc774 \ub458\uc774 \ud30c\uc77c \ub2e4\ub8e8\uae30\uc758 \ud575\uc2ec\uc785\ub2c8\ub2e4. \ucc28\uc774\ub294 \uac04\ub2e8\ud574\uc694 \u2014 <code>cp<\/code>\ub294 &#8220;\uc6d0\ubcf8\uc744 \ub0a8\uae30\uace0 \ubcf5\uc81c&#8221;, <code>mv<\/code>\ub294 &#8220;\uc6d0\ubcf8\uc744 \uc62e\uae40(\uc774\ub984 \ubc14\uafb8\uae30\ub3c4 \uc774\uac78\ub85c)&#8221;.<\/p>\n  <div class=\"cmd\"><span class=\"c\">$<\/span> cp a.txt a-backup.txt\n<span class=\"o\">                       \u2190 a.txt\ub97c a-backup.txt\ub77c\ub294 \uc774\ub984\uc73c\ub85c \ubcf5\uc0ac (\uc6d0\ubcf8 a.txt \uadf8\ub300\ub85c)<\/span>\n<span class=\"c\">$<\/span> cp a.txt docs\/\n<span class=\"o\">                       \u2190 a.txt\ub97c docs \ud3f4\ub354 \uc548\uc73c\ub85c \ubcf5\uc0ac (\uc774\ub984 \uadf8\ub300\ub85c)<\/span>\n<span class=\"c\">$<\/span> cp -r docs docs-copy\n<span class=\"o\">                       \u2190 \ud3f4\ub354\ub97c \ubcf5\uc0ac\ud560 \ub550 -r (recursive, \uc548\uc758 \ub0b4\uc6a9\uae4c\uc9c0). \ud30c\uc77c\ub9cc\uc774\uba74 -r \ubd88\ud544\uc694<\/span>\n\n<span class=\"c\">$<\/span> mv b.txt notes.txt\n<span class=\"o\">                       \u2190 b.txt \u2192 notes.txt. \uac19\uc740 \ud3f4\ub354 \uc548\uc774\uba74 \uc0ac\uc2e4\uc0c1 &#8220;\uc774\ub984 \ubc14\uafb8\uae30&#8221;<\/span>\n<span class=\"c\">$<\/span> mv c.log images\/\n<span class=\"o\">                       \u2190 c.log\ub97c images \ud3f4\ub354\ub85c \uc774\ub3d9 (\uc774\uc81c \ud604\uc7ac \ud3f4\ub354\uc5d4 \uc5c6\uc74c)<\/span>\n<span class=\"c\">$<\/span> mv -i notes.txt docs\/notes.txt\n<span class=\"w\">mv: overwrite &#8216;docs\/notes.txt&#8217;? <\/span><span class=\"o\">\u2190 -i: \ub36e\uc5b4\uc4f0\uae30 \uc804 \ubb3c\uc5b4\ubd04. \uc2e4\uc218 \ubc29\uc9c0\uc5d0 \uc88b\uc740 \uc2b5\uad00<\/span><\/div>\n  <p>\uc8fc\uc758\ud560 \uc810 \ud558\ub098: <code>cp<\/code>\ub098 <code>mv<\/code>\ub294 <strong>\ub300\uc0c1\uc5d0 \uac19\uc740 \uc774\ub984\uc774 \uc788\uc73c\uba74 \ubb3b\uc9c0 \uc54a\uace0 \ub36e\uc5b4\uc501\ub2c8\ub2e4<\/strong>(\ub418\ub3cc\ub9ac\uae30 \uc5c6\uc74c). \uadf8\ub798\uc11c \uc911\uc694\ud55c \uc791\uc5c5\uc5d4 <code>-i<\/code>(interactive) \uc635\uc158\uc744 \ubd99\uc5ec &#8220;\ub36e\uc5b4\uc4f8\uae4c\uc694?&#8221;\ub97c \ubb3c\uc5b4\ubcf4\uac8c \ud558\ub294 \uac8c \uc548\uc804\ud569\ub2c8\ub2e4. <code>cp -i<\/code>, <code>mv -i<\/code> \u2014 \uc190\uac00\ub77d\uc5d0 \uc775\ud600\ub450\uc138\uc694.<\/p>\n\n  <h2>\uc0ad\uc81c \u2014 rm \u00b7 rmdir, \uadf8\ub9ac\uace0 \uc808\ub300 \ud568\ubd80\ub85c \uce58\uba74 \uc548 \ub418\ub294 \ud55c \uc904<\/h2>\n  <p>\ub4dc\ub514\uc5b4 <code>rm<\/code>\uc785\ub2c8\ub2e4. \ub2e4\uc2dc \uac15\uc870 \u2014 <strong>\ud734\uc9c0\ud1b5 \uc548 \uac70\uce58\uace0, \uc989\uc2dc, \uc601\uad6c \uc0ad\uc81c<\/strong>\uc608\uc694.<\/p>\n  <div class=\"cmd\"><span class=\"c\">$<\/span> rm a-backup.txt\n<span class=\"o\">                       \u2190 \ud30c\uc77c \uc0ad\uc81c<\/span>\n<span class=\"c\">$<\/span> rm -i b.txt c.log\n<span class=\"w\">rm: remove &#8216;b.txt&#8217;? <\/span><span class=\"o\">\u2190 -i: \ud558\ub098\uc529 &#8220;\uc9c0\uc6b8\uae4c\uc694?&#8221; \ubb3c\uc5b4\ubd04 \u2014 \uc785\ubb38\uc790 \uac15\ub825 \ucd94\ucc9c<\/span>\n<span class=\"c\">$<\/span> rmdir images\n<span class=\"o\">                       \u2190 \ube48 \ud3f4\ub354 \uc0ad\uc81c (\uc548\uc5d0 \ubb50\uac00 \uc788\uc73c\uba74 \uac70\ubd80 \u2014 \uadf8\ub798\uc11c \uc624\ud788\ub824 \uc548\uc804\ud55c \uba85\ub839)<\/span>\n<span class=\"c\">$<\/span> rm -r docs-copy\n<span class=\"o\">                       \u2190 \ud3f4\ub354\uc640 \uadf8 \uc548\uc758 \ubaa8\ub4e0 \uac83 \uc0ad\uc81c. -r \uc5c6\uc774\ub294 \ud3f4\ub354 \ubabb \uc9c0\uc6c0<\/span><\/div>\n  <div class=\"warnbox\"><b>\u26a0\ufe0f \uc774 \ud55c \uc904\uc740 \ud3c9\uc0dd \ud568\ubd80\ub85c \uce58\uc9c0 \ub9c8\uc138\uc694:<\/b> <code>sudo rm -rf \/<\/code> \ub610\ub294 \ube44\uc2b7\ud55c \ud615\ud0dc(<code>rm -rf \/*<\/code>, <code>rm -rf ~<\/code> \ub4f1). <code>-r<\/code>\uc740 &#8220;\ud3f4\ub354\uc9f8&#8221;, <code>-f<\/code>\ub294 &#8220;\ubb3b\uc9c0\ub3c4 \ub530\uc9c0\uc9c0\ub3c4 \ub9d0\uace0 \uac15\uc81c\ub85c&#8221;. <code>sudo<\/code>\uae4c\uc9c0 \ubd99\uc73c\uba74 <strong>\uc2dc\uc2a4\ud15c \uc804\uccb4\ub97c \ubb3b\uc9c0 \uc54a\uace0 \uc9c0\uc6c1\ub2c8\ub2e4 \u2014 \ubcf5\uad6c \ubd88\uac00<\/strong>. \uc778\ud130\ub137\uc5d0\uc11c &#8220;\uc774\uac70 \uce58\uba74 \ud574\uacb0\ub428&#8221; \ud558\ub294 \uba85\ub839\uc5d0 <code>rm -rf<\/code>\uac00 \ubcf4\uc774\uba74, \uadf8\uac8c \ubb58 \uc9c0\uc6b0\ub294\uc9c0 <strong>\uc644\uc804\ud788 \uc774\ud574\ud558\uae30 \uc804\uc5d4 \uc808\ub300 \uce58\uc9c0 \ub9c8\uc138\uc694<\/strong>. \uc758\uc2ec\uc2a4\ub7ec\uc6b0\uba74 \uadf8 \uba85\ub839\uc744 \uac80\uc0c9\ud558\uac70\ub098, \uc774 \uc2dc\ub9ac\uc988 \uc5b4\ub518\uac00\uc5d0\uc11c \ub2e4\uc2dc \ud655\uc778\ud558\uc138\uc694. \uc9c4\uc9dc\ub85c, \uc774\uac70 \ud558\ub098\ub9cc\ud07c\uc740 \ub18d\ub2f4\uc774 \uc544\ub2d9\ub2c8\ub2e4.<\/div>\n  <p>\uac81\uc8fc\ub824\ub294 \uac8c \uc544\ub2c8\ub77c, \uc774\uac78 \uc54c\uace0 \ub098\uba74 \ub098\uba38\uc9c0\ub294 \ub2e4 \uc548\uc804\ud574\uc694. <code>rm \ud30c\uc77c\ud558\ub098<\/code>\ub294 \uadf8\ub0e5 \ud734\uc9c0\ud1b5 \uc5c6\ub294 \uc0ad\uc81c\uc77c \ubfd0\uc774\uace0, <code>-i<\/code>\ub97c \ubd99\uc774\uba74 \ud55c \ubc88 \ub354 \ubb3c\uc5b4\ubd05\ub2c8\ub2e4. \uc704\ud5d8\ud55c \uac74 <code>-rf<\/code> + \ub113\uc740 \ubc94\uc704(\ud2b9\ud788 <code>\/<\/code>\ub098 <code>~<\/code>) + <code>sudo<\/code>\uc758 \uc870\ud569\ubfd0\uc785\ub2c8\ub2e4.<\/p>\n\n  <h2>\ucc3e\uae30 \u2014 find\uacfc \uc640\uc77c\ub4dc\uce74\ub4dc, \uadf8\ub9ac\uace0 \ub2e4\uc74c<\/h2>\n  <p>\ud30c\uc77c\uc774 \uc313\uc774\uba74 &#8220;\uadf8\uac8c \uc5b4\ub514 \uc788\ub354\ub77c&#8221;\uac00 \uc0dd\uae41\ub2c8\ub2e4. \ub450 \uac00\uc9c0 \ub3c4\uad6c\uac00 \uc788\uc5b4\uc694.<\/p>\n  <h3>\uc640\uc77c\ub4dc\uce74\ub4dc(*, ?, [ ]) \u2014 &#8220;\ube44\uc2b7\ud55c \uc774\ub984 \ud55c\uaebc\ubc88\uc5d0&#8221;<\/h3>\n  <div class=\"cmd\"><span class=\"c\">$<\/span> ls *.txt\n<span class=\"o\">                       \u2190 .txt\ub85c \ub05d\ub098\ub294 \uac83 \uc804\ubd80. *\ub294 &#8220;\uc544\ubb34 \uae00\uc790\ub098 0\uac1c \uc774\uc0c1&#8221;<\/span>\n<span class=\"c\">$<\/span> ls a?.txt\n<span class=\"o\">                       \u2190 a + \ud55c \uae00\uc790 + .txt (a1.txt, ab.txt \u2026 ?\ub294 &#8220;\ub531 \ud55c \uae00\uc790&#8221;)<\/span>\n<span class=\"c\">$<\/span> rm *.log\n<span class=\"o\">                       \u2190 .log \ud30c\uc77c \ub2e4 \uc0ad\uc81c \u2014 *\ub294 \uac15\ub825\ud574\uc11c \uc2e0\uc911\ud788! rm \uc804\uc5d4 ls\ub85c \uba3c\uc800 \ud655\uc778\ud558\ub294 \uc2b5\uad00<\/span><\/div>\n  <h3>find \u2014 &#8220;\uc870\uac74\uc73c\ub85c \ub4a4\uc9c0\uae30&#8221;<\/h3>\n  <div class=\"cmd\"><span class=\"c\">$<\/span> find . -name &#8220;*.txt&#8221;\n<span class=\"o\">                       \u2190 \ud604\uc7ac \ud3f4\ub354(.)\ubd80\ud130 \uc544\ub798\ub85c \ub2e4 \ub4a4\uc838\uc11c .txt \ud30c\uc77c \ucc3e\uae30<\/span>\n<span class=\"c\">$<\/span> find ~ -name &#8220;notes*&#8221; -type f\n<span class=\"o\">                       \u2190 \ud648(~)\ubd80\ud130, \uc774\ub984\uc774 notes\ub85c \uc2dc\uc791\ud558\ub294 &#8216;\ud30c\uc77c'(-type f). \ud3f4\ub354\ub294 -type d<\/span>\n<span class=\"c\">$<\/span> find . -name &#8220;*.tmp&#8221; -mtime -1\n<span class=\"o\">                       \u2190 .tmp\uc774\uace0 1\uc77c \uc774\ub0b4 \uc218\uc815\ub41c \uac83. find\ub294 \uc870\uac74\uc744 \uacc4\uc18d \ubd99\uc77c \uc218 \uc788\uc74c<\/span><\/div>\n  <p>\uc785\ubb38 \ub2e8\uacc4\uc5d0\uc120 <code>find . -name \"\ud328\ud134\"<\/code> \uc815\ub3c4\uba74 \ucda9\ubd84\ud569\ub2c8\ub2e4. (\ucc38\uace0\ub85c \ub354 \ube60\ub974\uac8c \ucc3e\ub294 <code>locate<\/code>\ub098 \ucf54\ub4dc \uac80\uc0c9\uc6a9 <code>grep<\/code>\ub3c4 \uc788\ub294\ub370, \ud14d\uc2a4\ud2b8 \ub2e4\ub8e8\uae30\ub294 \ub2e4\uc74c 7\ud3b8\uc5d0\uc11c.) \uc640\uc77c\ub4dc\uce74\ub4dc \uc4f8 \ub550 <strong>\uc9c0\uc6b0\uae30 \uc804\uc5d0 <code>ls<\/code>\ub85c \uba3c\uc800 \ud655\uc778<\/strong> \u2014 \uc774 \uc2b5\uad00 \ud558\ub098\uac00 \uc0ac\uace0\ub97c \ub9c9\uc2b5\ub2c8\ub2e4.<\/p>\n  <div class=\"databox\"><b>\uc624\ub298\uc758 \uc815\ub9ac:<\/b> <code>touch<\/code>\u00b7<code>mkdir -p<\/code>(\ub9cc\ub4e4\uae30) \u00b7 <code>cp<\/code>\/<code>cp -r<\/code>(\ubcf5\uc0ac) \u00b7 <code>mv<\/code>(\uc774\ub3d9\u00b7\uc774\ub984\ubcc0\uacbd) \u00b7 <code>rm<\/code>\/<code>rm -r<\/code>\/<code>rmdir<\/code>(\uc0ad\uc81c) \u00b7 <code>find . -name<\/code>(\ucc3e\uae30) \u00b7 <code>*<\/code>\u00b7<code>?<\/code>(\uc640\uc77c\ub4dc\uce74\ub4dc). \uc548\uc804 \uc2b5\uad00 3\uac1c: <code>-i<\/code> \ubd99\uc774\uae30 \u00b7 \uc640\uc77c\ub4dc\uce74\ub4dc \uc804 <code>ls<\/code>\ub85c \ud655\uc778 \u00b7 <code>rm -rf<\/code> + \ub113\uc740 \ubc94\uc704 + <code>sudo<\/code> \uc808\ub300 \uae08\uc9c0.<\/p>\n\n  <div class=\"roadmap\">\n    <h3>\uc2dc\ub9ac\uc988 \ud750\ub984<\/h3>\n    <ol>\n      <li>1~5\ud3b8 \u2014 \ub9ac\ub205\uc2a4\ub780? \u00b7 \uc6b0\ubd84\ud22c \uc124\uce58 \u00b7 \uccab \uc124\uc815 \u00b7 \ud130\ubbf8\ub110 \uc785\ubb38 \u00b7 \ub514\ub809\ud1a0\ub9ac \uad6c\uc870 \u2714 (\uc785\ubb38 \ubb36\uc74c)<\/li>\n      <li><strong>6\ud3b8 \u2014 \ud30c\uc77c \uba85\ub839\uc5b4 (\uc774 \uae00) \u2714 \u2014 &#8220;\uae30\ucd08&#8221; \ubb36\uc74c \uc2dc\uc791<\/strong><\/li>\n      <li>7\ud3b8 \u2014 \ud14d\uc2a4\ud2b8 \uba85\ub839\uc5b4 (<code>cat<\/code>\u00b7<code>less<\/code>\u00b7<code>head<\/code>\u00b7<code>tail<\/code>\u00b7<code>grep<\/code> \u2014 \ud30c\uc77c \ub0b4\uc6a9 \ub4e4\uc5ec\ub2e4\ubcf4\uae30)<\/li>\n      <li>8\ud3b8 \u2014 nano \ud3b8\uc9d1\uae30 \/ 9\ud3b8 \u2014 \uad8c\ud55c\uacfc <code>chmod<\/code> \/ 10\ud3b8 \u2014 \uc0ac\uc6a9\uc790\u00b7\uadf8\ub8f9 \uad00\ub9ac \u2026<\/li>\n    <\/ol>\n  <\/div>\n  <p>\uc624\ub298 \ud560 \uc77c: <code>~\/linux-practice<\/code> \ud3f4\ub354 \ub9cc\ub4e4\uace0, \uadf8 \uc548\uc5d0\uc11c <strong>\ud30c\uc77c \ub9cc\ub4e4\uae30 \u2192 \ubcf5\uc0ac \u2192 \uc774\ub984 \ubc14\uafb8\uae30 \u2192 \uc0ad\uc81c<\/strong>\ub97c \ud55c \ubc14\ud034 \uc9c1\uc811 \ud574\ubcf4\uc138\uc694. <code>rm -i<\/code>\ub85c \ubb3c\uc5b4\ubcf4\uac8c \ud558\ub294 \uac83\ub3c4 \ud55c \ubc88 \uacbd\ud5d8\ud574\ubcf4\uace0\uc694. \uc190\uc774 \uae30\uc5b5\ud558\uba74 \ub2e4\uc74c \ud3b8\uc774 \uc26c\uc6cc\uc9d1\ub2c8\ub2e4. 7\ud3b8\uc5d0\uc11c \ub9cc\ub098\uc694. (\ucc38\uace0\ub85c \ubaa8\ub4e0 \uba85\ub839\uc740 <code>man cp<\/code>\u00b7<code>cp --help<\/code>\ucc98\ub7fc \ub0b4\uc7a5 \uc124\uba85\uc11c\uac00 \uc788\ub2e4\ub294 \uac70, 4\ud3b8\uc5d0\uc11c \ubc30\uc6e0\uc8e0.)<\/p>\n\n  <div class=\"cta\">\n    <h3>\uc6b0\ubd84\ud22c\u00b7\ub9ac\ub205\uc2a4 \uc785\ubb38 \uc2dc\ub9ac\uc988<\/h3>\n    <p>\ud30c\uc77c\uc744 \ub2e4\ub8f0 \uc904 \uc54c\uba74 \ub9ac\ub205\uc2a4\uac00 &#8220;\uc4f8 \uc904 \uc544\ub294&#8221; \ub2e8\uacc4\uc785\ub2c8\ub2e4. 7\ud3b8 &#8220;\ub9ac\ub205\uc2a4 \ud14d\uc2a4\ud2b8 \uba85\ub839\uc5b4&#8221;\ub85c \uc774\uc5b4\uc9d1\ub2c8\ub2e4.<\/p>\n    <p>\ub2e4\uc74c \ud3b8\uc740 <a href=\"https:\/\/junai.ai\/blog\/\" target=\"_blank\" rel=\"noopener\">JUNAI \ube14\ub85c\uadf8<\/a>\uc5d0\uc11c \uc774\uc5b4 \ubcf4\uc138\uc694. \uba85\ub839\uc5b4 \ub808\ud37c\ub7f0\uc2a4\ub294 <a href=\"https:\/\/ubuntu.com\/tutorials\/command-line-for-beginners\" target=\"_blank\" rel=\"noopener\">\uc6b0\ubd84\ud22c \uacf5\uc2dd \ud29c\ud1a0\ub9ac\uc5bc<\/a>\ub3c4 \ud568\uaed8.<\/p>\n  <\/div>\n\n<\/article>\n<\/div>\n\n<footer>\n  <div class=\"wrap\">\u00a9 2026 JUNAI \u00b7 \uc6b0\ubd84\ud22c\u00b7\ub9ac\ub205\uc2a4 \uc785\ubb38 \uc2dc\ub9ac\uc988 6\ud3b8 \u00b7 \ubcf8 \uae00\uc740 2026\ub144 5\uc6d4 12\uc77c \uae30\uc900\uc73c\ub85c \uc791\uc131\ub418\uc5c8\uc2b5\ub2c8\ub2e4.<\/div>\n<\/footer>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\uc6b0\ubd84\ud22c \u00b7 \ub9ac\ub205\uc2a4 \uc785\ubb38 \u2014 6\ud3b8 (\uae30\ucd08) \ub9ac\ub205\uc2a4 \ud30c\uc77c \uba85\ub839\uc5b4 \u2014 cp\u00b7mv\u00b7rm\u00b7find \uc548\uc804\ud558\uac8c \uc774\uc81c \uc9c4\uc9dc\ub85c \ud30c\uc77c\uc744 \ub2e4\ub8f9\ub2c8\ub2e4 \u2014 \ub9cc\ub4e4\uace0, \ubcf5\uc0ac\ud558\uace0, \uc62e\uae30\uace0, \uc9c0\uc6b0\uace0, \ucc3e\uace0. \uadf8\ub9ac\uace0 \ud55c \ubc88 \uc798\ubabb \ub204\ub974\uba74 \ub05d\uc778 \uba85\ub839 \ud558\ub098\ub97c \ud53c\ud558\ub294 \ubc95. 2026\ub144 5\uc6d4 12\uc77c \u00b7 \uc57d 8\ubd84 \u00b7 26\ud3b8 \uc785\ubb38 \uc2dc\ub9ac\uc988 6\ud3b8 1~5\ud3b8\uc73c\ub85c \uc6b0\ubd84\ud22c\ub97c \uae54\uace0, \uc124\uc815\ud558\uace0, \ud130\ubbf8\ub110\uc744 \uc5f4\uace0, \ud3f4\ub354 \uc9c0\ub3c4\uae4c\uc9c0 \uc190\uc5d0 \uc950\uc5c8\uc2b5\ub2c8\ub2e4. \uc9c0\uae08\uae4c\uc9c0\ub294 <a href=\"https:\/\/junai.ai\/blog\/linux-file-commands-6\/\" class=\"more-link\">&#8230;<span class=\"screen-reader-text\">  \ub9ac\ub205\uc2a4 \ud30c\uc77c \uba85\ub839\uc5b4 \u2014 cp\u00b7mv\u00b7rm\u00b7find \uc548\uc804\ud558\uac8c (6\ud3b8)<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":154,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu-linux"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/comments?post=165"}],"version-history":[{"count":0,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/165\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/media\/154"}],"wp:attachment":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/media?parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/categories?post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/tags?post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}