{"id":52270,"date":"2025-08-11T12:15:04","date_gmt":"2025-08-11T04:15:04","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/52270.html"},"modified":"2025-08-11T12:15:04","modified_gmt":"2025-08-11T04:15:04","slug":"linux-%e5%91%bd-%e4%bb%a4-%e7%95%8c-%e7%9a%84-%e7%8e%8b-%e7%82%b8-%e7%bb%84-%e5%90%88%ef%bc%81gitee-%e6%8f%90-%e4%ba%a4-%e6%9d%83-%e9%99%90-%e6%8e%a7-%e5%88%b6-%e7%83%ad","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/52270.html","title":{"rendered":"Linux \u547d \u4ee4 \u754c \u7684 \u201c\u738b \u70b8 \u7ec4 \u5408\u201d\uff01Gitee \u63d0 \u4ea4 + \u6743 \u9650 \u63a7 \u5236 + \u70ed \u952e \u795e \u64cd\uff0c\u5b66 \u4f1a \u76f4 \u63a5 \u9738 \u5c4f \u7ec8 \u7aef\uff01"},"content":{"rendered":"<\/p>\n<h4>\u6587 \u7ae0 \u76ee \u5f55<\/h4>\n<ul>\n<li>Gitee \u63d0 \u4ea4<\/li>\n<li>\u65f6 \u95f4 \u76f8 \u5173 \u7684 \u6307 \u4ee4<\/li>\n<li>\n<ul>\n<li>\u65e5 \u5fd7<\/li>\n<li>date<\/li>\n<li>\u65f6 \u95f4 \u6233<\/li>\n<li>cal<\/li>\n<li>find<\/li>\n<li>grep &#8211; &#8211; &#8211; \u884c \u6587 \u672c \u8fc7 \u6ee4 \u5de5 \u5177<\/li>\n<li>zip \/ unzip<\/li>\n<li>tar<\/li>\n<li>bc<\/li>\n<li>uname<\/li>\n<\/ul>\n<\/li>\n<li>\u70ed \u952e<\/li>\n<li>\n<ul>\n<li>Tab<\/li>\n<li>\u5386 \u53f2 \u547d \u4ee4 \u641c \u7d22<\/li>\n<li>ctrl &#043; c<\/li>\n<li>nano<\/li>\n<li>ctrl &#043; d<\/li>\n<li>history<\/li>\n<li>\u5173 \u673a<\/li>\n<\/ul>\n<\/li>\n<li>\u6307 \u4ee4<\/li>\n<li>\n<ul>\n<li>\u547d \u4ee4 \u884c \u89e3 \u91ca \u5668<\/li>\n<\/ul>\n<\/li>\n<li>\u6743 \u9650<\/li>\n<li>\n<ul>\n<li>\u6587 \u4ef6<\/li>\n<li>chmod<\/li>\n<li>chown<\/li>\n<li>chgrp<\/li>\n<li>\u76ee \u5f55 \u7684 \u6743 \u9650<\/li>\n<li>\u6743 \u9650 \u63a9 \u7801<\/li>\n<li>\n<ul>\n<li>umask<\/li>\n<\/ul>\n<\/li>\n<li>\u591a \u4e2a \u7528 \u6237 \u5171 \u4eab \u6587 \u4ef6<\/li>\n<li>\u7c98 \u6ede \u4f4d<\/li>\n<\/ul>\n<\/li>\n<li>\u6743 \u9650 \u603b \u7ed3<\/li>\n<li>\u603b \u7ed3<\/li>\n<\/ul>\n<p>&#x1f4bb;\u4f5c \u8005 \u7b80 \u4ecb&#xff1a;\u66fe \u4e0e \u4f60 \u4e00 \u6837 \u8ff7 \u832b&#xff0c;\u73b0 \u4ee5 \u7ecf \u9a8c \u52a9 \u4f60 \u5165 \u95e8 Linux\u3002 &#x1f4a1;\u4e2a \u4eba \u4e3b \u9875&#xff1a;&#064;\u7b11\u53e3\u5e38\u5f00xpr \u7684 \u4e2a \u4eba \u4e3b \u9875 &#x1f4da;\u7cfb \u5217 \u4e13 \u680f&#xff1a;Linux \u63a2 \u7d22 \u4e4b \u65c5&#xff1a;\u4ece \u547d \u4ee4 \u884c \u5230 \u7cfb \u7edf \u5185 \u6838 \u2728\u4ee3 \u7801 \u8da3 \u8bed&#xff1a;git \u50cf \u4e2a \u8f83 \u771f \u7684 \u5feb \u9012 \u5458&#xff1a;clone \u662f \u201c\u4e0a \u95e8 \u53d6 \u4ef6\u201d&#xff0c;\u628a \u4ed3 \u5e93 \u642c \u56de \u5bb6&#xff1b;add \u662f \u201c\u6253 \u5305 \u8d27 \u7269\u201d&#xff0c;\u6807 \u597d \u8981 \u5bc4 \u7684 \u4e1c \u897f&#xff1b;commit \u662f \u201c\u586b \u5feb \u9012 \u5355\u201d&#xff0c;\u5199 \u6e05 \u5bc4 \u4ef6 \u8bf4 \u660e&#xff1b;push \u624d \u662f \u201c\u9001 \u8d27 \u4e0a \u95e8\u201d&#xff0c;\u628a \u4ee3 \u7801 \u5b89 \u5168 \u9001 \u5230 \u8fdc \u7a0b \u4ed3 \u5e93 &#8211; &#8211; &#8211; \u5c11 \u4e00 \u6b65 \u90fd \u53d1 \u4e0d \u4e86 \u8d27\u3002 &#x1f4aa;\u4ee3 \u7801 \u5343 \u884c&#xff0c;\u59cb \u4e8e \u575a \u6301&#xff0c;\u6bcf \u65e5 \u6572 \u7801&#xff0c;\u8fdb \u9636 \u7f16 \u7a0b \u4e4b \u8def\u3002 &#x1f4e6;gitee \u94fe \u63a5&#xff1a;gitee<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041457-68996e419770b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Linux \u547d \u4ee4 \u884c \u7684 \u9ad8 \u6548 \u7075 \u6d3b&#xff0c;\u85cf \u4e8e \u7cbe \u51c6 \u6307 \u4ee4 \u4e0e \u6743 \u9650 \u63a7 \u5236 \u4e2d\u3002\u4ee3 \u7801 \u63d0 \u4ea4\u3001\u65f6 \u95f4 \u7ba1 \u7406\u3001\u6587 \u4ef6 \u641c \u7d22\u3001\u6743 \u9650 \u914d \u7f6e \u7b49 \u770b \u4f3c \u96f6 \u6563 \u7684 \u64cd \u4f5c&#xff0c;\u5b9e \u4e3a \u7cfb \u7edf \u7ba1 \u7406 \u57fa \u77f3\u3002\u672c \u6587 \u62c6 \u89e3 \u6838 \u5fc3 \u573a \u666f&#xff0c;\u52a9 \u4f60 \u5403 \u900f \u903b \u8f91\u3001\u638c \u63e1 \u6743 \u9650&#xff0c;\u8ba9 \u64cd \u4f5c \u4ece \u751f \u6da9 \u53d8 \u987a \u624b\u3002<\/p>\n<hr \/>\n<p>\u6211 \u5c06 \u4f7f \u7528 \u666e \u901a \u7528 \u6237 \u7684 \u65b9 \u5f0f \u6765 \u4ecb \u7ecd Linux \u76f8 \u5173 \u7684 \u6307 \u4ee4\u3002<\/p>\n<h2>Gitee \u63d0 \u4ea4<\/h2>\n<p>Gitee<\/p>\n<li>\n<p>\u8fdb \u5165 Gitee \u91cc \u9762 \u767b \u5f55 \u8d26 \u53f7&#xff0c;\u70b9 \u51fb \u53f3 \u4e0a \u89d2 \u7684 \u65b0 \u5efa \u4ed3 \u5e93\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041459-68996e4311af5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u8f93 \u5165 \u4ed3 \u5e93 \u540d \u79f0 \u548c \u4ed3 \u5e93 \u4ecb \u7ecd&#xff0c;\u9009 \u62e9 \u5982 \u4e0b \u56fe \u6240 \u793a \u7684 \u9009 \u9879&#xff0c;\u70b9 \u51fb \u521b \u5efa \u5373 \u53ef\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041459-68996e43adbc1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u70b9 \u51fb \u5982 \u4e0b \u56fe \u6240 \u793a \u7684 \u590d \u5236&#xff0c;\u8fd9 \u4e2a \u94fe \u63a5 \u5c31 \u662f \u8fd9 \u4e2a \u4ed3 \u5e93 \u7684 \u94fe \u63a5\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041500-68996e441fdf9.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u5728 \u6587 \u4ef6 \u8d44 \u6e90 \u7ba1 \u7406 \u5668 \u4e2d \u65b0 \u5efa \u4e00 \u4e2a \u6587 \u4ef6 \u5939&#xff0c;\u7528 \u6765 \u5b58 \u653e linux \u7684 \u6307 \u4ee4\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041500-68996e448fa52.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u53f3 \u51fb \u9009 \u62e9 \u7528 \u7ec8 \u7aef \u6253 \u5f00\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041500-68996e44a0cc0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u7ec8 \u7aef \u4e2d \u9009 \u62e9 PowerShell&#xff0c;\u56e0 \u4e3a PowerShell \u652f \u6301 Linux \u6307 \u4ee4\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041500-68996e44b4629.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u5728 \u6700 \u4e0a \u9762 \u9f20 \u6807 \u53f3 \u952e \u6253 \u5f00 \u8bbe \u7f6e&#xff0c;\u5728 \u9ed8 \u8ba4 \u914d \u7f6e \u6587 \u4ef6 \u4e2d \u9009 \u62e9PowerShell\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041500-68996e44d7ce6.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u5173 \u95ed \u8bbe \u7f6e&#xff0c;\u8f93 \u5165 git clone &#043; \u7b2c 3 \u6b65 \u590d \u5236 \u7684 \u5730 \u5740\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041501-68996e455651e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u53ef \u4ee5 \u5728 \u6587 \u4ef6 \u5939 \u4e2d \u653e \u4e0a \u56fe \u7247 \u6216 \u8005 \u4ee3 \u7801&#xff0c;\u5982 \u4e0b \u56fe\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041501-68996e45a44e8.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u4f9d \u6b21 \u8f93 \u5165 \u5982 \u4e0b \u56fe \u6240 \u793a \u7684 \u6307 \u4ee4&#xff0c;\u53ef \u4ee5 \u5c06 \u56fe \u7247 \u6216 \u4ee3 \u7801 \u63a8 \u9001 \u5230 Gitee \u4ed3 \u5e93 \u4e2d\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041501-68996e45b1514.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041502-68996e460d87a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u7c7b \u4f3c \u7684&#xff0c;\u5728 Xshell \u4e2d \u4e5f \u53ef \u4ee5 \u514b \u9686 \u4ed3 \u5e93&#xff0c;\u6ce8 \u610f \u8fd9 \u91cc \u4e0d \u80fd \u6709 \u548c \u4ed3 \u5e93 \u540d \u79f0 \u76f8 \u540c \u7684 \u6587 \u4ef6 \u5939 \u540d \u79f0&#xff0c;\u5426 \u5219 \u4f1a \u62a5 \u9519\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041502-68996e463b05e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u53ef \u4ee5 \u5728 Xshell \u4e2d \u67e5 \u770b Gitee \u4ed3 \u5e93 \u4e2d \u7684 \u4ee3 \u7801 \u548c \u56fe \u7247\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041502-68996e4674c52.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<h2>\u65f6 \u95f4 \u76f8 \u5173 \u7684 \u6307 \u4ee4<\/h2>\n<h3>\u65e5 \u5fd7<\/h3>\n<p>\u7a0b \u5e8f \u8fd0 \u884c \u5230 \u6bcf \u4e00 \u4e2a \u5173 \u952e \u65f6 \u523b&#xff0c;\u90fd \u8981 \u6253 \u65e5 \u5fd7\u3002\u65e5 \u5fd7 \u4e2d \u6709 \u65f6 \u95f4\u3001\u65e5 \u5fd7 \u7b49 \u7ea7&#xff0c;\u5177 \u4f53 \u4fe1 \u606f&#xff0c;\u5176 \u4ed6 \u4fe1 \u606f&#xff0c;\u4ee5 \u884c \u4e3a \u5355 \u4f4d \u8fdb \u884c \u8f93 \u51fa\u3002<\/p>\n<h3>date<\/h3>\n<p>\u6309 \u7167 \u9700 \u6c42 \u8fdb \u884c \u4fe1 \u606f \u63d0 \u53d6\u3002 date <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041502-68996e46bb26b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> date &#043;%Y-%m-%d-%H:%M:%S <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041502-68996e46d5847.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u65f6 \u95f4 \u6233<\/h3>\n<p>\u65f6 \u95f4 \u6233 \u662f \u4ece 1970 \u5e74 1 \u6708 1 \u65e5&#xff08;\u5348 \u591c 12 \u70b9 \u6574&#xff09; \u5f00 \u59cb \u6240 \u7ecf \u8fc7 \u7684 \u79d2 \u6570&#xff0c;\u4e0d \u8003 \u8651 \u95f0 \u79d2\u3002 date &#043;%s &#8211; &#8211; &#8211; \u65f6 \u95f4 \u6233 date -d &#064;\u65f6\u95f4\u6233 &#8211; &#8211; &#8211; \u65f6 \u95f4 \u6233 \u8f6c \u6362 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041502-68996e46ee7a4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041503-68996e4707aba.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u8fd9 \u91cc \u663e \u793a 8 \u70b9 \u662f \u56e0 \u4e3a \u5348 \u591c 12 \u70b9 \u6574 \u662f \u6b27 \u6d32 \u65f6 \u95f4&#xff0c;\u4e2d \u56fd \u6bd4 \u6b27 \u6d32 \u5feb 8 \u4e2a \u5c0f \u65f6\u3002<\/p>\n<h3>cal<\/h3>\n<p>cal \u547d \u4ee4 \u53ef \u4ee5 \u7528 \u6765 \u663e \u793a \u516c \u5386&#xff08;\u9633 \u5386&#xff09;\u65e5 \u5386\u3002 cal [\u53c2\u6570][\u6708\u4efd][\u5e74\u4efd] <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041503-68996e4716c91.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> cal [\u6708\u4efd][\u5e74\u4efd] <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041503-68996e4750d5f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>find<\/h3>\n<p>\u7528 \u4e8e \u5728 \u6587 \u4ef6 \u6811 \u4e2d \u67e5 \u627e \u6587 \u4ef6&#xff0c;\u5e76 \u4f5c \u51fa \u76f8 \u5e94 \u7684 \u5904 \u7406&#xff08;\u53ef \u80fd \u8bbf \u95ee \u78c1 \u76d8&#xff09;\u3002 -name \u6309 \u7167 \u6587 \u4ef6 \u540d \u67e5 \u627e \u6587 \u4ef6 <img decoding=\"async\" src=\"2025-08-11wmtko22dmx1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> which \u5728 \u6307 \u5b9a \u7684 \u8def \u5f84 \u4e0b \u641c \u7d22 \u6587 \u4ef6\u3002 <img decoding=\"async\" src=\"2025-08-11bm3fggcqg0q.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> whereis \u5728 \u7cfb \u7edf \u7684 \u8def \u5f84 \u4e0b \u67e5 \u627e&#xff0c;\u65e2 \u53ef \u4ee5 \u627e \u5230 \u53ef \u6267 \u884c \u7a0b \u5e8f&#xff0c;\u53c8 \u53ef \u4ee5 \u627e \u5230 \u624b \u518c&#xff0c;\u5b89 \u88c5 \u5305&#xff0c;\u538b \u7f29 \u5305 \u4e4b \u7c7b \u7684\u3002 <img decoding=\"async\" src=\"2025-08-11i4qsq0egxil.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>grep &#8211; &#8211; &#8211; \u884c \u6587 \u672c \u8fc7 \u6ee4 \u5de5 \u5177<\/h3>\n<p>grep [\u9009\u9879] \u641c\u5bfb\u5b57\u7b26\u4e32 \u6587\u4ef6 -i &#xff1a;\u5ffd \u7565 \u5927 \u5c0f \u5199 \u7684 \u4e0d \u540c&#xff0c;\u6240 \u4ee5 \u5927 \u5c0f \u5199 \u89c6 \u4e3a \u76f8 \u540c -n &#xff1a;\u8f93 \u51fa \u884c \u53f7 -v &#xff1a;\u53cd \u5411 \u9009 \u62e9 <img decoding=\"async\" src=\"2025-08-11f2tzvrgg4zp.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u67e5 \u627e \u5b57 \u7b26 \u4e32 <img decoding=\"async\" src=\"2025-08-11txihf2njylb.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> -v \u53cd \u5411 \u6253 \u5370\u3002 <img decoding=\"async\" src=\"2025-08-11pa4bf2jntxo.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>zip \/ unzip<\/h3>\n<p>\u6253 \u5305&#xff1a;\u5c06 \u6587 \u4ef6 \u88c5 \u5728 \u4e00 \u8d77 \u538b \u7f29&#xff1a;\u901a \u8fc7 \u7b97 \u6cd5 \u538b \u7f29 \u6587 \u4ef6&#xff0c;\u8282 \u7701 \u7a7a \u95f4\u3002<\/p>\n<p>\u80fd \u88ab \u6253 \u5305 \u548c \u538b \u7f29 \u7684 \u4e00 \u5b9a \u662f \u4e00 \u4e2a \u6574 \u4f53&#xff0c;\u7531 \u591a \u4e2a \u6587 \u4ef6 \u53d8 \u6210 \u4e86 1 \u4e2a \u6587 \u4ef6&#xff0c;\u4e0d \u5bb9 \u6613 \u9020 \u6210 \u6587 \u4ef6 \u7f3a \u5931&#xff0c;\u4f1a \u8ba9 \u6587 \u4ef6 \u4f53 \u79ef \u53d8 \u5c0f\u3002<\/p>\n<p>zip \u538b \u7f29 \u6587 \u4ef6.zip \u76ee \u5f55 \u6216 \u6587 \u4ef6 \u5c06 \u76ee \u5f55 \u6216 \u6587 \u4ef6 \u538b \u7f29 \u6210 zip \u683c \u5f0f <img decoding=\"async\" src=\"2025-08-11xk2wg2z2ptn.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u666e \u901a \u538b \u7f29 \u53ea \u80fd \u5c06 \u76ee \u5f55 \u538b \u7f29&#xff0c;\u4e0d \u5305 \u62ec \u91cc \u9762 \u7684 \u6587 \u4ef6\u3002 -r \u9012 \u5f52 \u5904 \u7406&#xff0c;\u5c06 \u6307 \u5b9a \u76ee \u5f55 \u4e0b \u7684 \u6240 \u6709 \u6587 \u4ef6 \u548c \u5b50 \u76ee \u5f55 \u4e00 \u5e76 \u5904 \u7406\u3002 <img decoding=\"async\" src=\"2025-08-11glay2slainw.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u4f7f \u7528 -r \u53ef \u4ee5 \u5c06 d1 \u4e2d \u7684 \u6240 \u6709 \u6587 \u4ef6 \u90fd \u538b \u7f29 \u5c06 test2 \u76ee \u5f55 \u538b \u7f29&#xff1a;zip test2.zip test2\/* \u89e3 \u538b \u5230 tmp \u76ee \u5f55&#xff1a;unzip test2.zip -d \/tmp<\/p>\n<hr \/>\n<p>\u6ca1 \u6709 zip \u548c unzip<\/p>\n<li>\u4f7f \u7528 root \u65b9 \u5f0f \u767b \u5f55&#xff0c;\u5982 \u679c \u4e0d \u662f root \u53ef \u4ee5 \u4f7f \u7528 \u6307 \u4ee4 su \u6216 \u8005 su- \u5207 \u6362 \u5230 root \u7528 \u6237\u3002<\/li>\n<li>\u8f93 \u5165 yum install -y zip unzip \u4f1a \u5b89 \u88c5 zip \u548c unzip\u3002<\/li>\n<hr \/>\n<p>\u6253 \u5305 \u548c \u538b \u7f29 \u7684 \u65b9 \u6cd5 \u6709 \u8bb8 \u591a \u79cd\u3002<\/p>\n<h3>tar<\/h3>\n<p>-c&#xff1a;\u5efa \u7acb \u4e00 \u4e2a \u538b \u7f29 \u6587 \u4ef6 \u7684 \u53c2 \u6570 \u6307 \u4ee4(create \u7684 \u610f \u601d)&#xff1b; -x &#xff1a;\u89e3 \u5f00 \u4e00 \u4e2a \u538b \u7f29 \u6587 \u4ef6 \u7684 \u53c2 \u6570 \u6307 \u4ee4&#xff01; -t&#xff1a;\u67e5 \u770b tarfile \u91cc \u9762 \u7684 \u6587 \u4ef6\u3002 -z&#xff1a;\u662f \u5426 \u540c \u65f6 \u5177 \u6709 gzip \u7684 \u5c5e \u6027&#xff1f;\u4ea6 \u5373 \u662f \u5426 \u9700 \u8981 \u7528 gzip \u538b \u7f29&#xff1f; -j&#xff1a;\u662f \u5426 \u540c \u65f6 \u5177 \u6709 bzip2 \u7684 \u5c5e \u6027&#xff1f;\u4ea6 \u5373 \u662f \u5426 \u9700 \u8981 \u7528 bzip2 \u538b \u7f29&#xff1f; -v&#xff1a;\u538b \u7f29 \u7684 \u8fc7 \u7a0b \u4e2d \u663e \u793a \u6587 \u4ef6&#xff01;\u8fd9 \u4e2a \u5e38 \u7528&#xff0c;\u4f46 \u4e0d \u5efa \u8bae \u7528 \u5728 \u80cc \u666f \u6267 \u884c \u8fc7 \u7a0b&#xff01; -f&#xff1a;\u4f7f \u7528 \u6863 \u540d&#xff0c;\u8bf7 \u7559 \u610f&#xff0c;\u5728 f \u4e4b \u540e \u8981 \u7acb \u5373 \u63a5 \u6863 \u540d \u5594&#xff01;\u4e0d \u8981 \u518d \u52a0 \u53c2 \u6570&#xff01; -C&#xff1a; \u89e3 \u538b \u5230 \u6307 \u5b9a \u76ee \u5f55<\/p>\n<hr \/>\n<p>czf &#8211; &#8211; &#8211; \u521b \u5efa \u5e76 \u4f7f \u7528 gzip \u538b \u7f29 <img decoding=\"async\" src=\"2025-08-11aykunupuwki.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u4e0a \u56fe \u4e2d 2 \u6761 \u547d \u4ee4 \u903b \u8f91 \u7b49 \u4ef7&#xff0c;\u4ec5 \u8f93 \u51fa \u6587 \u4ef6 \u540d \u4e0d \u540c\u3002<\/p>\n<hr \/>\n<p>.tar.gz &#8211; &#8211; &#8211; &gt; .tgz tar &#8211; &#8211; &#8211; \u6253 \u5305 \u540e \u7f00 .gz &#8211; &#8211; &#8211; \u538b \u7f29 \u540e \u7f00<\/p>\n<hr \/>\n<p>tzf &#8211; &#8211; &#8211; \u67e5 \u770b \u538b \u7f29 \u5305 \u7684 \u5185 \u5bb9&#xff0c;\u6ca1 \u6709 \u89e3 \u538b\u3002 <img decoding=\"async\" src=\"2025-08-11pzftyjz1hps.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<p>xzf &#8211; &#8211; &#8211; \u89e3 \u538b \u538b \u7f29 \u5305 <img decoding=\"async\" src=\"2025-08-11k1ieor0lftm.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<p>-C &#8211; &#8211; &#8211; \u89e3 \u538b \u5230 \u6307 \u5b9a \u76ee \u5f55 <img decoding=\"async\" src=\"2025-08-11cnh4yawrpcv.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>bc<\/h3>\n<p>bc &#8211; &#8211; &#8211; Linux\u4e0b \u7684 \u8ba1 \u7b97 \u5668&#xff0c;\u9000 \u51fa \u65f6 \u8f93 \u5165 quit \u5373 \u53ef\u3002 <img decoding=\"async\" src=\"2025-08-11r5ghqvm3f4c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>uname<\/h3>\n<p>uname [\u9009\u9879] uname \u7528 \u6765 \u83b7 \u53d6 \u7535 \u8111 \u548c \u64cd \u4f5c \u7cfb \u7edf \u7684 \u76f8 \u5173 \u4fe1 \u606f uname \u53ef \u663e \u793a linux \u4e3b \u673a \u6240 \u7528 \u7684 \u64cd \u4f5c \u7cfb \u7edf \u7684 \u7248 \u672c\u3001\u786c \u4ef6 \u7684 \u540d \u79f0 \u7b49 \u57fa \u672c \u4fe1 \u606f\u3002 -a \u6216 \u2013all \u8be6 \u7ec6 \u8f93 \u51fa \u6240 \u6709 \u4fe1 \u606f&#xff0c;\u4f9d \u6b21 \u4e3a \u5185 \u6838 \u540d \u79f0&#xff0c;\u4e3b \u673a \u540d&#xff0c;\u5185 \u6838 \u7248 \u672c \u53f7&#xff0c;\u5185 \u6838 \u7248 \u672c&#xff0c;\u786c \u4ef6 \u540d&#xff0c;\u5904 \u7406 \u5668 \u7c7b \u578b&#xff0c;\u786c \u4ef6 \u5e73 \u53f0 \u7c7b \u578b&#xff0c;\u64cd \u4f5c \u7cfb \u7edf \u540d \u79f0\u3002 <img decoding=\"async\" src=\"2025-08-115xjkhuqzvqs.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> x86_64 \u7b49 \u4ef7 \u4e8e x64&#xff0c;\u5373 64 \u4f4d \u7684 \u673a \u5668\u3002 x86 &#061;&#061; 32&#xff0c;\u5373 32 \u4f4d \u7684 \u673a \u5668\u3002<\/p>\n<hr \/>\n<p>uname -r <img decoding=\"async\" src=\"2025-08-11kwyaowmtuz2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> free -k \u4ee5 kb \u7684 \u65b9 \u5f0f \u67e5 \u5185 \u5b58\u3002 <img decoding=\"async\" src=\"2025-08-11p0hht3u3vog.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> free -m -m \u9009 \u9879 \u8868 \u793a \u4ee5 \u5146 \u5b57 \u8282&#xff08;MB&#xff09;\u4e3a \u5355 \u4f4d \u663e \u793a \u5185 \u5b58 \u4fe1 \u606f&#xff08;\u9ed8 \u8ba4 \u662f KB&#xff09;\u3002 <img decoding=\"async\" src=\"2025-08-11211assrcqmp.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> free -g -g \u4ee5 \u5343 \u5146 \u5b57 \u8282&#xff08;GB&#xff09;\u4e3a \u5355 \u4f4d \u663e \u793a \u5185 \u5b58 \u4f7f \u7528 \u4fe1 \u606f\u3002 <img decoding=\"async\" src=\"2025-08-110aowkuowdzw.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> df -h \u7528 \u4e8e \u67e5 \u770b \u6587 \u4ef6 \u7cfb \u7edf \u7684 \u78c1 \u76d8 \u7a7a \u95f4 \u4f7f \u7528 \u60c5 \u51b5\u3002 <img decoding=\"async\" src=\"2025-08-11ys5wfw503p1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> lscpu lscpu \u662f Linux \u7cfb \u7edf \u4e2d \u7528 \u4e8e \u67e5 \u770b CPU \u786c \u4ef6 \u4fe1 \u606f \u7684 \u547d \u4ee4\u3002 <img decoding=\"async\" src=\"2025-08-11waapkvb3in5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<h2>\u70ed \u952e<\/h2>\n<p>\u7ecf \u5e38 \u4f7f \u7528 \u7684 \u6309 \u952e\u3002<\/p>\n<h3>Tab<\/h3>\n<p>Tab \u8865 \u5168 \u6216 \u8005 \u663e \u793a \u6307 \u4ee4\u3002 <img decoding=\"async\" src=\"2025-08-11uviiwgrxn3j.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u5386 \u53f2 \u547d \u4ee4 \u641c \u7d22<\/h3>\n<p>ctrl&#043;r &#8211; &#8211; &#8211; \u641c \u7d22 \u5386 \u53f2 \u547d \u4ee4&#xff0c;\u641c \u7d22 \u5b8c \u6210 \u540e \u6309 \u56de \u8f66 \u5373 \u53ef\u3002\u53ef \u4ee5 \u641c \u7d22 \u5386 \u53f2 \u547d \u4ee4 \u51b3 \u5b9a \u4e86 Linux \u7cfb \u7edf \u4e00 \u5b9a \u8bb0 \u5f55 \u4e86 \u5386 \u53f2 \u547d \u540d\u3002 <img decoding=\"async\" src=\"2025-08-11rllhpmu5r1p.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"2025-08-11wwtxwiwuign.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>ctrl &#043; c<\/h3>\n<p>\u7ec8 \u6b62 \u547d \u4ee4<\/p>\n<h3>nano<\/h3>\n<p>nano \u662f Linux \u4e2d \u7684 \u8bb0 \u4e8b \u672c&#xff0c;\u53ef \u4ee5 \u8f93 \u5165 nano &#8211;version \u6765 \u67e5 \u770b \u662f \u5426 \u5b89 \u88c5&#xff0c;\u5982\u4e0b\u56fe\u6240\u793a&#xff0c;\u5df2 \u7ecf \u5b89 \u88c5 \u597d \u4e86\u3002 <img decoding=\"async\" src=\"2025-08-11jl3aoyoywic.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<li>\u5982 \u679c \u662f \u666e \u901a \u7528 \u6237 \u4f7f \u7528 su- \u53ef \u4ee5 \u5207 \u6362 \u4e3a \u8d85 \u7ea7 \u7528 \u6237\u3002<\/li>\n<li>\u8f93 \u5165 yum install -y nano \u53ef \u4ee5 \u5b89 \u88c5 nano\u3002 <img decoding=\"async\" src=\"2025-08-11hpdaa2job14.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u4f7f \u7528 nano<\/li>\n<li>\u8f93 \u5165 \u6307 \u4ee4 nano test.c&#xff0c;\u8fd9 \u91cc \u5982 \u679c \u6ca1 \u6709 test.c \u6587 \u4ef6 \u5219 \u4f1a \u65b0 \u5efa\u3002 <img decoding=\"async\" src=\"2025-08-11n3s2vpdf3cv.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u8f93 \u5165 \u5b8c \u6210 \u540e \u6309 ctrl &#043; x \u9000 \u51fa&#xff0c;\u8f93 \u5165 Y \u4fdd \u5b58 \u6587 \u4ef6 \u540e&#xff0c;\u6309 \u56de \u8f66 \u5373 \u53ef \u9000 \u51fa\u3002 <img decoding=\"async\" src=\"2025-08-114uhxmw2hr3w.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"2025-08-11e3tefwmzchq.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"2025-08-11kzslrcogh52.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u4ee3 \u7801 \u5b8c \u6210 \u540e \u53ef \u4ee5 \u7f16 \u8bd1 \u5e76 \u6267 \u884c \u53ef \u6267 \u884c \u7a0b \u5e8f\u3002 <img decoding=\"async\" src=\"2025-08-11szime55gmyz.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<h3>ctrl &#043; d<\/h3>\n<p>\u4e0d \u65ad \u6309 ctrl &#043; d \u4f1a \u9000 \u51fa \u767b \u5f55\u3002<\/p>\n<h3>history<\/h3>\n<p>\u67e5 \u770b \u6240 \u6709 \u7684 \u5386 \u53f2 \u547d \u4ee4 \u5217 \u8868&#xff0c;Linux \u4f1a \u8bb0 \u5f55 \u9ed8 \u8ba4 \u8bb0 \u5f55 \u6700 \u65b0 \u7684 1000\u6761\u3002 <img decoding=\"async\" src=\"2025-08-11gadehpd21xz.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u5173 \u673a<\/h3>\n<p>Linux \u64cd \u4f5c \u7cfb \u7edf&#xff08;\u670d \u52a1 \u5668&#xff09;&#xff0c;\u6c38 \u8fdc \u4e0d \u5173 \u673a\u3002 -h &#xff1a;\u5c06 \u7cfb \u7edf \u7684 \u670d \u52a1 \u505c \u6389 \u540e&#xff0c;\u7acb \u5373 \u5173 \u673a\u3002 -r&#xff1a; \u5728 \u5c06 \u7cfb \u7edf \u7684 \u670d \u52a1 \u505c \u6389 \u4e4b \u540e \u5c31 \u91cd \u65b0 \u542f \u52a8 -t sec&#xff1a; -t \u540e \u9762 \u52a0 \u79d2 \u6570&#xff0c;\u4ea6 \u5373 \u8fc7 \u51e0 \u79d2 \u540e \u5173 \u673a \u7684 \u610f \u601d\u3002 shutdown [\u9009\u9879] \u5e38\u89c1\u9009\u9879<\/p>\n<h2>\u6307 \u4ee4<\/h2>\n<p>\u8f93 \u5165 \u6307 \u4ee4 \u7684 \u8fc7 \u7a0b&#xff0c;\u672c \u8d28 \u4e0a \u5176 \u5b9e \u5c31 \u662f \u8f93 \u5165 \u5b57 \u7b26 \u4e32\u3002\u6307 \u4ee4 \u7684 \u672c \u8d28 \u5c31 \u662f \u7f16 \u8bd1 \u597d \u7684 \u7a0b \u5e8f \u548c \u811a \u672c&#xff0c;\u4e00 \u5b9a \u4f1a \u5728 \u7cfb \u7edf \u7684 \u7279 \u5b9a \u8def \u5f84 \u4e0b \u5b58 \u653e\u3002 <img decoding=\"async\" src=\"2025-08-11pxfgm051pcb.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u547d \u4ee4 \u884c \u89e3 \u91ca \u5668<\/h3>\n<p>\u539f \u56e0 \u6240 \u6709 \u7684 \u6307 \u4ee4 \u6700 \u7ec8 \u90fd \u8981 \u5728 \u64cd \u4f5c \u7cfb \u7edf \u5185 \u90e8 \u8fd0 \u884c&#xff0c;\u4f46 \u662f \u64cd \u4f5c \u7cfb \u7edf \u4f7f \u7528 \u96be \u5ea6 \u8f83 \u9ad8&#xff0c;\u7528 \u6237 \u4e0d \u80fd \u76f4 \u63a5 \u548c \u64cd \u4f5c \u7cfb \u7edf \u6253 \u4ea4 \u9053\u3002<\/p>\n<p>\u4f5c \u7528 \u5c06 \u4f7f \u7528 \u8005 \u7684 \u547d \u4ee4 \u7ffb \u8bd1 \u7ed9 \u6838 \u5fc3 \u5904 \u7406&#xff0c;\u540c \u65f6&#xff0c;\u5c06 \u6838 \u5fc3 \u7684 \u5904 \u7406 \u7ed3 \u679c \u7ffb \u8bd1 \u7ed9 \u4f7f \u7528 \u8005\u3002<\/p>\n<p>\u610f \u4e49<\/p>\n<li>\u8fdb \u884c \u547d \u4ee4 \u884c \u89e3 \u91ca\u3002<\/li>\n<li>\u4fdd \u62a4 \u64cd \u4f5c \u7cfb \u7edf&#xff0c;\u5bf9 \u4e8e \u7528 \u6237 \u7684 \u975e \u6cd5 \u8bf7 \u6c42&#xff0c;\u76f4 \u63a5 \u62e6 \u622a\u3002 <img decoding=\"async\" src=\"2025-08-11ieq2atsb01m.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<h2>\u6743 \u9650<\/h2>\n<p>\u4e00 \u4ef6 \u4e8b \u60c5 \u662f \u5426 \u88ab \u5141 \u8bb8 \u505a&#xff0c;\u6743 \u9650 \u8ba4 \u8bc1 \u7684 \u662f \u8eab \u4efd\u3002<\/p>\n<h3>\u6587 \u4ef6<\/h3>\n<p>Linux \u7cfb \u7edf \u4e2d \u6587 \u4ef6 \u540d \u540e \u7f00 \u6ca1 \u6709 \u76f4 \u63a5 \u7684 \u610f \u4e49&#xff0c;\u64cd \u4f5c \u7cfb \u7edf \u4e0d \u5173 \u5fc3 \u540e \u7f00&#xff0c;Linux \u7cfb \u7edf \u4e0a \u8fd0 \u884c \u7684 \u5176 \u4ed6 \u8f6f \u4ef6 \u9700 \u8981 \u540e \u7f00\u3002<\/p>\n<p><img decoding=\"async\" src=\"2025-08-11ful2lohtxkn.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u7b2c 1 \u5217 \u7b2c 1 \u4e2a \u5b57 \u6bcd d&#xff1a;\u6587 \u4ef6 \u5939 -&#xff1a;\u666e \u901a \u6587 \u4ef6&#xff08;\u6587 \u672c&#xff0c;\u53ef \u6267 \u884c \u7a0b \u5e8f&#xff0c;\u5e93 \u57fa \u672c \u90fd \u5c5e \u4e8e \u666e \u901a \u6587 \u4ef6&#xff09; l&#xff1a;\u8f6f \u94fe \u63a5&#xff08;\u7c7b \u4f3c Windows \u7684 \u5feb \u6377 \u65b9 \u5f0f&#xff09; b&#xff1a;\u5757 \u8bbe \u5907 \u6587 \u4ef6&#xff08;\u4f8b \u5982 \u786c \u76d8\u3001\u5149 \u9a71 \u7b49&#xff09; p&#xff1a;\u7ba1 \u9053 \u6587 \u4ef6&#xff0c;\u8fdb \u884c \u901a \u4fe1 \u7684 c&#xff1a;\u5b57 \u7b26 \u8bbe \u5907 \u6587 \u4ef6&#xff08;\u952e \u76d8&#xff0c;\u663e \u793a \u5668 \u6587 \u4ef6 \u7b49&#xff09; s&#xff1a;\u5957 \u63a5 \u53e3 \u6587 \u4ef6<\/p>\n<hr \/>\n<p>\u6743 \u9650 \u4e5f \u548c \u4e8b \u7269 \u7684 \u201c\u5c5e \u6027\u201d \u6709 \u5173 \u57fa \u672c \u6743 \u9650 \u8bfb&#xff1a;Read \u5bf9 \u6587 \u4ef6 \u800c \u8a00&#xff0c;\u5177 \u6709 \u8bfb \u53d6 \u6587 \u4ef6 \u5185 \u5bb9 \u7684 \u6743 \u9650&#xff1b;\u5bf9 \u76ee \u5f55 \u6765 \u8bf4&#xff0c;\u5177 \u6709 \u6d4f \u89c8 \u8be5 \u76ee \u5f55 \u4fe1 \u606f \u7684 \u6743 \u9650 \u5199&#xff1a;Write \u5bf9 \u6587 \u4ef6 \u800c \u8a00&#xff0c;\u5177 \u6709 \u4fee \u6539 \u6587 \u4ef6 \u5185 \u5bb9 \u7684 \u6743 \u9650&#xff1b;\u5bf9 \u76ee \u5f55 \u6765 \u8bf4 \u5177 \u6709 \u521b \u5efa \u5220 \u9664 \u79fb \u52a8 \u76ee \u5f55 \u5185 \u6587 \u4ef6 \u7684 \u6743 \u9650 \u6267 \u884c&#xff1a;execute \u5bf9 \u6587 \u4ef6 \u800c \u8a00&#xff0c;\u5177 \u6709 \u6267 \u884c \u6587 \u4ef6 \u7684 \u6743 \u9650&#xff1b;\u5bf9 \u76ee \u5f55 \u6765 \u8bf4&#xff0c;\u5177 \u6709 \u8fdb \u5165 \u76ee \u5f55 \u7684 \u6743 \u9650 -&#xff1a;\u8868 \u793a \u4e0d \u5177 \u6709 \u8be5 \u9879 \u6743 \u9650\u3002<\/p>\n<hr \/>\n<p>\u62e5 \u6709 \u8005&#xff1a;\u4e8b \u7269 \u7684 \u4e3b \u8981 \u5f52 \u5c5e \u4eba \u6216 \u8d1f \u8d23 \u4eba \u6240 \u5c5e \u7ec4&#xff1a;\u4e8b \u7269 \u5f52 \u5c5e \u4e8e \u54ea \u4e2a \u56e2 \u961f\u3001\u7ec4 \u7ec7 \u6216 \u5c0f \u7ec4\u3002 \u5176 \u4ed6 \u4eba&#xff1a;\u9664 \u62e5 \u6709 \u8005 \u548c \u6240 \u5c5e \u7ec4 \u4e4b \u5916&#xff0c;\u4e0e \u8be5 \u4e8b \u7269 \u76f8 \u5173 \u7684 \u5176 \u4ed6 \u5173 \u8054 \u4eba \u5458\u3002 root \u4e0d \u53d7 \u6743 \u9650 \u7684 \u7ea6 \u675f&#xff0c;\u5236 \u5b9a \u89c4 \u5219 \u7684 \u4eba \u4e0d \u53d7 \u6743 \u9650 \u7684 \u7ea6 \u675f\u3002 <img decoding=\"async\" src=\"2025-08-114gfx1z21a4e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"2025-08-11paizi2ocqpy.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u4f4d \u7f6e \u662f \u4ec0 \u4e48 \u542b \u4e49 \u662f \u786e \u5b9a \u7684&#xff0c;\u6bcf \u4e00 \u4e2a \u4f4d \u7f6e \u53ea \u6709 \u662f \u6216 \u8005 \u5426&#xff0c;\u5177 \u6709 \u6307 \u5b9a \u7684 \u6743 \u9650\u3002<\/p>\n<hr \/>\n<p>8 \u8fdb \u5236 \u6570 \u503c \u8868 \u793a \u65b9 \u6cd5<\/p>\n<table>\n<tr>\u6743\u9650\u7b26\u53f7&#xff08;\u8bfb\u5199\u6267\u884c&#xff09;\u516b \u8fdb \u5236\u4e8c\u8fdb\u5236<\/tr>\n<tbody>\n<tr>\n<td align=\"center\">r<\/td>\n<td align=\"center\">4<\/td>\n<td align=\"center\">100<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">w<\/td>\n<td align=\"center\">2<\/td>\n<td align=\"center\">010<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">x<\/td>\n<td align=\"center\">1<\/td>\n<td align=\"center\">001<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">rw<\/td>\n<td align=\"center\">6<\/td>\n<td align=\"center\">110<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">rx<\/td>\n<td align=\"center\">5<\/td>\n<td align=\"center\">101<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">wx<\/td>\n<td align=\"center\">3<\/td>\n<td align=\"center\">011<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">rwx<\/td>\n<td align=\"center\">7<\/td>\n<td align=\"center\">111<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">&#8211; &#8211; &#8211;<\/td>\n<td align=\"center\">0<\/td>\n<td align=\"center\">000<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>chmod<\/h3>\n<p>\u4fee \u6539 \u6587 \u4ef6 \u7684 \u6743 \u9650\u3002 \u7528 \u6237 \u8868 \u793a \u7b26 &#043; \/ &#8211; &#061; \u6743 \u9650 \u5b57 \u7b26 &#043;&#xff1a;\u5411 \u6743 \u9650 \u8303 \u56f4 \u589e \u52a0 \u6743 \u9650 \u4ee3 \u53f7 \u6240 \u8868 \u793a \u7684 \u6743 \u9650 -&#xff1a;\u5411 \u6743 \u9650 \u8303 \u56f4 \u53d6 \u6d88 \u6743 \u9650 \u4ee3 \u53f7 \u6240 \u8868 \u793a \u7684 \u6743 \u9650 &#061;&#xff1a;\u5411 \u6743 \u9650 \u8303 \u56f4 \u8d4b \u4e88 \u6743 \u9650 \u4ee3 \u53f7 \u6240 \u8868 \u793a \u7684 \u6743 \u9650 \u7528 \u6237 \u7b26 \u53f7&#xff1a; u&#xff1a;\u62e5 \u6709 \u8005 g&#xff1a;\u62e5 \u6709 \u8005 \u540c \u7ec4 \u7528 o&#xff1a;\u5176 \u5b83 \u7528 \u6237 a&#xff1a;\u6240 \u6709 \u7528 \u6237 <img decoding=\"async\" src=\"2025-08-11vyt1kz2jadi.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"2025-08-11rfvrvcwiexv.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"2025-08-11bvweg10rmt1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<p>\u66f4 \u6539 \u6743 \u9650 \u7684 \u7528 \u6237 &#8211; &#8211; &#8211; root \u548c \u62e5 \u6709 \u8005 \u65b9 \u6cd5 1 chmod u\/g\/o&#043;-r\/w\/x \u6587\u4ef6 <img decoding=\"async\" src=\"2025-08-11w5yazjmrrah.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u65b9 \u6cd5 2 chmod \u516b\u8fdb\u5236 \u6587\u4ef6 \u7ed9 \u6240 \u6709 \u7528 \u6237 \u52a0 \u4e0a \u6240 \u6709 \u6743 \u9650 <img decoding=\"async\" src=\"2025-08-11pvgv5ggg1ei.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>chown<\/h3>\n<p>\u4fee \u6539 \u6587 \u4ef6 \u7684 \u62e5 \u6709 \u8005\u3002 \u4f7f \u7528 root \u6765 \u66f4 \u6539\u3002 \u4fee \u6539 \u524d <img decoding=\"async\" src=\"2025-08-11vx0s03u20vs.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u4fee \u6539 \u540e <img decoding=\"async\" src=\"2025-08-11krphj4kwzw1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<p><img decoding=\"async\" src=\"2025-08-111z25pqjcooe.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u4fee \u6539 \u6587 \u4ef6 \u7684 \u62e5 \u6709 \u8005 \u540e&#xff0c;\u539f \u62e5 \u6709 \u8005 \u53d8 \u6210 \u4e86 \u5176 \u4ed6 \u4eba&#xff0c;\u4f46 \u8fd8 \u662f \u8fd9 \u4e2a \u6587 \u4ef6 \u7684 \u6240 \u5c5e \u7ec4&#xff0c;\u65e0 \u6cd5 \u4fee \u6539 \u6587 \u4ef6 \u7684 \u6743 \u9650\u3002<\/p>\n<h3>chgrp<\/h3>\n<p>\u66f4 \u6539 \u6587 \u4ef6 \u7684 \u6240 \u5c5e \u7ec4&#xff0c;\u548c chown \u7c7b \u4f3c&#xff0c;\u9700 \u8981 \u4f7f \u7528 root \u6743 \u9650\u3002 <img decoding=\"async\" src=\"2025-08-11ezpjl55vhax.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u66f4 \u6539 \u539f \u6587 \u4ef6 \u7684 \u6240 \u5c5e \u7ec4 \u548c \u62e5 \u6709 \u8005 \u540e&#xff0c;\u539f \u6587 \u4ef6 \u7684 \u7528 \u6237 \u53d8 \u6210 \u4e86 \u5176 \u4ed6 \u4eba\u3002<\/p>\n<hr \/>\n<p>\u53ef \u4ee5 \u4f7f \u7528 chown \u4e00 \u6b21 \u66f4 \u6539 \u6240 \u5c5e \u7ec4 \u548c \u62e5 \u6709 \u8005\u3002 chown \u62e5\u6709\u8005:\u6240\u5c5e\u7ec4 \u6587\u4ef6 <img decoding=\"async\" src=\"2025-08-11nfyqtchf5hg.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<p>\u6ce8 \u610f<\/p>\n<p><img decoding=\"async\" src=\"2025-08-1102ij5xxssvp.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u6743 \u9650 \u5728 \u8fdb \u884c \u8ba4 \u8bc1 \u7684 \u65f6 \u5019&#xff0c;\u53ea \u80fd \u8ba4 \u8bc1 1 \u4e2a \u8eab \u4efd\u3002 \u5927 \u5c0f&#xff1a;\u62e5 \u6709 \u8005 &gt; \u6240 \u5c5e \u7ec4 &gt; \u5176 \u4ed6 \u4eba<\/p>\n<hr \/>\n<h3>\u76ee \u5f55 \u7684 \u6743 \u9650<\/h3>\n<p>\u53ef \u6267 \u884c \u6743 \u9650&#xff1a;\u5982 \u679c \u76ee \u5f55 \u6ca1 \u6709 \u53ef \u6267 \u884c \u6743 \u9650&#xff0c;\u5219 \u65e0 \u6cd5 cd \u5230 \u76ee \u5f55 \u4e2d\u3002 \u53ef \u8bfb \u6743 \u9650&#xff1a;\u5982 \u679c \u76ee \u5f55 \u6ca1 \u6709 \u53ef \u8bfb \u6743 \u9650&#xff0c;\u5219 \u65e0 \u6cd5 \u7528 ls \u7b49 \u547d \u4ee4 \u67e5 \u770b \u76ee \u5f55 \u4e2d \u7684 \u6587 \u4ef6 \u5185 \u5bb9\u3002 \u53ef \u5199 \u6743 \u9650&#xff1a;\u5982 \u679c \u76ee \u5f55 \u6ca1 \u6709 \u53ef \u5199 \u6743 \u9650&#xff0c;\u5219 \u65e0 \u6cd5 \u5728 \u76ee \u5f55 \u4e2d \u521b \u5efa \u6587 \u4ef6&#xff0c;\u4e5f \u65e0 \u6cd5 \u5728 \u76ee \u5f55 \u4e2d \u5220 \u9664 \u6587 \u4ef6\u3002<\/p>\n<h3>\u6743 \u9650 \u63a9 \u7801<\/h3>\n<p>\u4e3a \u4ec0 \u4e48 \u666e \u901a \u6587 \u4ef6 \u662f 664&#xff0c;\u76ee \u5f55 \u6587 \u4ef6 \u662f 775 ? <img decoding=\"async\" src=\"2025-08-11dpyfufrwppb.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> linux \u9ed8 \u8ba4 \u7ed9 \u666e \u901a \u6587 \u4ef6 \u7684 \u8d77 \u59cb \u6743 \u9650 \u662f 666&#xff0c;\u7ed9 \u76ee \u5f55 \u6587 \u4ef6 \u7684 \u8d77 \u59cb \u6743 \u9650 \u662f 777\u3002<\/p>\n<hr \/>\n<h4>umask<\/h4>\n<p>\u67e5 \u770b \u6587 \u4ef6 \u63a9 \u7801 umask <img decoding=\"async\" src=\"2025-08-11lsuyzjyh5no.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u51e1 \u662f \u5728 umask \u4e2d \u51fa \u73b0 \u7684 \u6743 \u9650&#xff0c;\u4e0d \u4f1a \u5728 \u6700 \u7ec8 \u7684 \u6587 \u4ef6 \u6743 \u9650 \u4e2d \u51fa \u73b0\u3002 \u666e \u901a \u6587 \u4ef6 666 \u7684 \u4e8c \u8fdb \u5236 \u662f&#xff1a;110 110 110 \u6587 \u4ef6 \u63a9 \u7801 000 000 010  \u6700 \u7ec8 \u7f16 \u7801 110 110 100&#xff0c;\u5373 664\u3002<\/p>\n<p>\u6700 \u7ec8 \u6743 \u9650 &#061; \u8d77 \u59cb \u6743 \u9650 &amp;&#xff08;~umask&#xff09; ~umask &#061; 111 111 101 \u8d77 \u59cb \u6743 \u9650 &amp;&#xff08;~umask&#xff09; &#061; 110 110 110 &amp; 111 111 101 &#061; 110 110 100<\/p>\n<p>\u76ee \u5f55 \u6587 \u4ef6 777 \u7684 \u4e8c \u8fdb \u5236 \u662f111 111 111 \u6587 \u4ef6 \u63a9 \u7801 000 000 010 \u6700 \u7ec8 \u7f16 \u7801 111 111 101&#xff0c;\u5373 775\u3002<\/p>\n<hr \/>\n<p>\u4fee \u6539 \u6587 \u4ef6 \u6743 \u9650 umask &#043; \u6743 \u9650 \u503c <img decoding=\"async\" src=\"2025-08-11zfro0ka004d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<p>\u666e \u901a \u7528 \u6237 \u81ea \u5df1 \u7684 \u5bb6 \u76ee \u5f55 \u6743 \u9650 \u662f 700&#xff0c;\u522b \u7684 \u7528 \u6237 \u6ca1 \u6709 \u6743 \u9650\u3002 \u5982 \u679c \u60f3 \u5171 \u4eab \u6587 \u4ef6&#xff0c;\u4e0d \u80fd \u5728 \u4efb \u4f55 \u4e00 \u4e2a \u7528 \u6237 \u7684 \u5bb6 \u76ee \u5f55 \u4e0b\u3002 <img decoding=\"async\" src=\"2025-08-1132stkyer54p.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u591a \u4e2a \u7528 \u6237 \u5171 \u4eab \u6587 \u4ef6<\/h3>\n<p>\u65b9 \u6cd5 1 \u6839 \u76ee \u5f55 \u4e0b \u7684 tmp \u6587 \u4ef6\u3002 <img decoding=\"async\" src=\"2025-08-112pk3qm1gyeh.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u65b9 \u6cd5 2<\/p>\n<li>\u4f7f \u7528 root \u5728 \u6839 \u76ee \u5f55 \u4e0b \u521b \u5efa \u6587 \u4ef6 \u5939&#xff0c; <img decoding=\"async\" src=\"2025-08-114qyjvsupmwd.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u4f7f \u7528 chmod \u66f4 \u6539 \u6587 \u4ef6 \u6240 \u5c5e \u7ec4 \u548c \u5176 \u4ed6 \u4eba \u7684 \u6743 \u9650\u3002 <img decoding=\"async\" src=\"2025-08-11rdgjw2530ds.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"2025-08-11grssbqshhcm.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"2025-08-11kkmrnyr2m05.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u7528 \u6237 1 \u4f5c \u4e3a \u5176 \u4ed6 \u4eba\u53ef \u4ee5 \u5728 share \u521b \u5efa \u6587 \u4ef6\u3002 <img decoding=\"async\" src=\"2025-08-11vsfzvdpcwyg.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u7528 \u6237 2 \u53ea \u6709 \u6587 \u4ef6 \u8bfb \u7684 \u6743 \u9650 \u4f46 \u662f \u53ef \u4ee5 \u5220 \u9664&#xff0c;\u5220 \u9664 \u9700 \u8981 \u5199 \u7684 \u6743 \u9650\u3002 <img decoding=\"async\" src=\"2025-08-11opuzd2jyu4l.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u7ed3 \u8bba \u4e00 \u4e2a \u6587 \u4ef6 \u80fd \u5426 \u88ab \u5220 \u9664&#xff0c;\u5e76 \u4e0d \u7531 \u6587 \u4ef6 \u672c \u8eab \u51b3 \u5b9a&#xff0c;\u800c \u662f \u7531 \u8fd9 \u4e2a \u6587 \u4ef6 \u6240 \u5904 \u7684 \u76ee \u5f55 \u51b3 \u5b9a\u3002<\/li>\n<p>\u65b9 \u6cd5 1<\/p>\n<li>\u4f7f \u7528 root \u66f4 \u6539 \u5171 \u4eab \u6587 \u4ef6 \u5939 \u7684 \u6743 \u9650\u3002 <img decoding=\"async\" src=\"2025-08-1135izjuks5xu.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u66f4 \u6539 \u540e \u7528 \u6237 \u65e0 \u6cd5 \u5220 \u9664 \u6587 \u4ef6&#xff0c;\u4f46 \u540c \u65f6 \u4e5f \u65e0 \u6cd5 \u521b \u5efa \u6587 \u4ef6\u3002 <img decoding=\"async\" src=\"2025-08-11jubzih4adeg.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<hr \/>\n<h3>\u7c98 \u6ede \u4f4d<\/h3>\n<li>\u5207 \u6362 \u5230 root \u4f7f \u7528 \u7c98 \u6ede \u4f4d&#xff0c;\u5982 \u4e0b \u56fe \u4f1a \u66f4 \u6539 \u5176 \u4ed6 \u4eba \u7684 \u6267 \u884c \u6743\u3002 <img decoding=\"async\" src=\"2025-08-11ggibonr2h0j.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"2025-08-113vhs1nw0mvk.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<li>\u4e0d \u662f \u6587 \u4ef6 \u7684 \u62e5 \u6709 \u8005 \u65e0 \u6cd5 \u5220 \u9664 \u6587 \u4ef6\u3002 <img decoding=\"async\" src=\"2025-08-11mz0rizd3brp.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u603b \u7ed3<\/li>\n<p>\u7c98 \u6ede \u4f4d&#xff0c;\u7ed9 \u76ee \u5f55 \u8bbe \u7f6e&#xff0c;\u4e00 \u822c \u662f \u5171 \u4eab \u76ee \u5f55&#xff0c;\u5404 \u4e2a \u7528 \u6237 \u53ef \u4ee5 \u8fdb \u884c \u5728 \u76ee \u5f55 \u8fdb \u884c \u589e \u5220 \u67e5 \u6539\u3002<\/p>\n<p>t \u662f \u4e00 \u79cd \u7279 \u6b8a \u7684 x \u6743 \u9650\u3002<\/p>\n<p>\u5f53 \u4e00 \u4e2a \u76ee \u5f55 \u88ab \u8bbe \u7f6e \u4e3a &#034;\u7c98 \u6ede \u4f4d &#034; (\u7528 chmod &#043; t)&#xff0c;\u5219 \u8be5 \u76ee \u5f55 \u4e0b \u7684 \u6587 \u4ef6 \u53ea \u80fd \u7531<\/p>\n<li>\u8d85 \u7ea7 \u7ba1 \u7406 \u5458 \u5220 \u9664<\/li>\n<li>\u8be5 \u76ee \u5f55 \u7684 \u6240 \u6709 \u8005 \u5220 \u9664<\/li>\n<li>\u8be5 \u6587 \u4ef6 \u7684 \u6240 \u6709 \u8005 \u5220 \u9664<\/li>\n<hr \/>\n<h2>\u6743 \u9650 \u603b \u7ed3<\/h2>\n<li>\u76ee \u5f55 \u7684 \u53ef \u6267 \u884c \u6743 \u9650 \u662f \u8868 \u793a \u4f60 \u53ef \u5426 \u5728 \u76ee \u5f55 \u4e0b \u6267 \u884c \u547d \u4ee4\u3002<\/li>\n<li>\u5982 \u679c \u76ee \u5f55 \u6ca1 \u6709 -x \u6743 \u9650&#xff0c;\u5219 \u65e0 \u6cd5 \u5bf9 \u76ee \u5f55 \u6267 \u884c \u4efb \u4f55 \u547d \u4ee4&#xff0c;\u751a \u81f3 \u65e0 \u6cd5 cd \u8fdb \u5165 \u76ee \u5f55&#xff0c;\u5373 \u4f7f \u76ee \u5f55 \u4ecd \u7136 \u6709 -r \u8bfb \u6743 \u9650\u3002<\/li>\n<li>\u800c \u5982 \u679c \u76ee \u5f55 \u5177 \u6709 -x \u6743 \u9650&#xff0c;\u4f46 \u6ca1 \u6709 -r \u6743 \u9650&#xff0c;\u5219 \u7528 \u6237 \u53ef \u4ee5 \u6267 \u884c \u547d \u4ee4&#xff0c;\u53ef \u4ee5 cd \u8fdb \u5165 \u76ee \u5f55\u3002\u4f46 \u7531 \u4e8e \u6ca1 \u6709 \u76ee \u5f55 \u7684 \u8bfb \u6743 \u9650&#xff0c;\u6240 \u4ee5 \u5728 \u76ee \u5f55 \u4e0b&#xff0c;\u5373 \u4f7f \u53ef \u4ee5 \u6267 \u884c ls \u547d \u4ee4&#xff0c;\u4f46 \u4ecd \u7136 \u6ca1 \u6709 \u6743 \u9650 \u8bfb \u51fa \u76ee \u5f55 \u4e0b \u7684 \u6587 \u6863 \u3002<\/li>\n<p><img decoding=\"async\" src=\"2025-08-113onvqkpg1n3.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<h2>\u603b \u7ed3<\/h2>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u4ece \u4ee3 \u7801 \u6258 \u7ba1 \u5230 \u6743 \u9650 \u63a7 \u5236&#xff0c;Linux \u547d \u4ee4 \u85cf \u7740 \u201c\u89c4 \u5219\u201d \u4e0e \u201c\u6548 \u7387\u201d \u7684 \u5e73 \u8861\u3002\u6743 \u9650 \u6838 \u5fc3 \u662f \u7406 \u89e3 \u201c\u8c01 \u80fd \u505a \u4ec0 \u4e48\u201d&#xff0c;\u547d \u4ee4 \u4ef7 \u503c \u5728 \u7075 \u6d3b \u7ec4 \u5408 \u89e3 \u51b3 \u95ee \u9898\u3002\u591a \u5b9e \u8df5 \u80fd \u592f \u5b9e \u57fa \u7840&#xff0c;\u4e3a \u6df1 \u5165 \u5b66 \u4e60 \u94fa \u8def\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb37\u6b21\u3002\u672c\u6587\u6db5\u76d6 Gitee \u63d0\u4ea4\u3001\u65f6\u95f4\u547d\u4ee4\u3001\u6743\u9650\u63a7\u5236\u7b49 Linux \u6838\u5fc3\u64cd\u4f5c\uff0c\u62c6\u89e3\u573a\u666f\u4e0e\u903b\u8f91\uff0c\u52a9\u4f60\u8f7b\u677e\u638c\u63e1\u547d\u4ee4\u4e0e\u6743\u9650\u5965\u79d8\u3002<\/p>\n","protected":false},"author":2,"featured_media":52250,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1598,58,5231,2305],"topic":[],"class_list":["post-52270","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-gitee","tag-linux","tag-linux-","tag-2305"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux \u547d \u4ee4 \u754c \u7684 \u201c\u738b \u70b8 \u7ec4 \u5408\u201d\uff01Gitee \u63d0 \u4ea4 + \u6743 \u9650 \u63a7 \u5236 + \u70ed \u952e \u795e \u64cd\uff0c\u5b66 \u4f1a \u76f4 \u63a5 \u9738 \u5c4f \u7ec8 \u7aef\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/52270.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux \u547d \u4ee4 \u754c \u7684 \u201c\u738b \u70b8 \u7ec4 \u5408\u201d\uff01Gitee \u63d0 \u4ea4 + \u6743 \u9650 \u63a7 \u5236 + \u70ed \u952e \u795e \u64cd\uff0c\u5b66 \u4f1a \u76f4 \u63a5 \u9738 \u5c4f \u7ec8 \u7aef\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb37\u6b21\u3002\u672c\u6587\u6db5\u76d6 Gitee \u63d0\u4ea4\u3001\u65f6\u95f4\u547d\u4ee4\u3001\u6743\u9650\u63a7\u5236\u7b49 Linux \u6838\u5fc3\u64cd\u4f5c\uff0c\u62c6\u89e3\u573a\u666f\u4e0e\u903b\u8f91\uff0c\u52a9\u4f60\u8f7b\u677e\u638c\u63e1\u547d\u4ee4\u4e0e\u6743\u9650\u5965\u79d8\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/52270.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-11T04:15:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041457-68996e419770b.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/52270.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/52270.html\",\"name\":\"Linux \u547d \u4ee4 \u754c \u7684 \u201c\u738b \u70b8 \u7ec4 \u5408\u201d\uff01Gitee \u63d0 \u4ea4 + \u6743 \u9650 \u63a7 \u5236 + \u70ed \u952e \u795e \u64cd\uff0c\u5b66 \u4f1a \u76f4 \u63a5 \u9738 \u5c4f \u7ec8 \u7aef\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-11T04:15:04+00:00\",\"dateModified\":\"2025-08-11T04:15:04+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/52270.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/52270.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/52270.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux \u547d \u4ee4 \u754c \u7684 \u201c\u738b \u70b8 \u7ec4 \u5408\u201d\uff01Gitee \u63d0 \u4ea4 + \u6743 \u9650 \u63a7 \u5236 + \u70ed \u952e \u795e \u64cd\uff0c\u5b66 \u4f1a \u76f4 \u63a5 \u9738 \u5c4f \u7ec8 \u7aef\uff01\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux \u547d \u4ee4 \u754c \u7684 \u201c\u738b \u70b8 \u7ec4 \u5408\u201d\uff01Gitee \u63d0 \u4ea4 + \u6743 \u9650 \u63a7 \u5236 + \u70ed \u952e \u795e \u64cd\uff0c\u5b66 \u4f1a \u76f4 \u63a5 \u9738 \u5c4f \u7ec8 \u7aef\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/52270.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux \u547d \u4ee4 \u754c \u7684 \u201c\u738b \u70b8 \u7ec4 \u5408\u201d\uff01Gitee \u63d0 \u4ea4 + \u6743 \u9650 \u63a7 \u5236 + \u70ed \u952e \u795e \u64cd\uff0c\u5b66 \u4f1a \u76f4 \u63a5 \u9738 \u5c4f \u7ec8 \u7aef\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb37\u6b21\u3002\u672c\u6587\u6db5\u76d6 Gitee \u63d0\u4ea4\u3001\u65f6\u95f4\u547d\u4ee4\u3001\u6743\u9650\u63a7\u5236\u7b49 Linux \u6838\u5fc3\u64cd\u4f5c\uff0c\u62c6\u89e3\u573a\u666f\u4e0e\u903b\u8f91\uff0c\u52a9\u4f60\u8f7b\u677e\u638c\u63e1\u547d\u4ee4\u4e0e\u6743\u9650\u5965\u79d8\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/52270.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-11T04:15:04+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811041457-68996e419770b.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/52270.html","url":"https:\/\/www.wsisp.com\/helps\/52270.html","name":"Linux \u547d \u4ee4 \u754c \u7684 \u201c\u738b \u70b8 \u7ec4 \u5408\u201d\uff01Gitee \u63d0 \u4ea4 + \u6743 \u9650 \u63a7 \u5236 + \u70ed \u952e \u795e \u64cd\uff0c\u5b66 \u4f1a \u76f4 \u63a5 \u9738 \u5c4f \u7ec8 \u7aef\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-11T04:15:04+00:00","dateModified":"2025-08-11T04:15:04+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/52270.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/52270.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/52270.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux \u547d \u4ee4 \u754c \u7684 \u201c\u738b \u70b8 \u7ec4 \u5408\u201d\uff01Gitee \u63d0 \u4ea4 + \u6743 \u9650 \u63a7 \u5236 + \u70ed \u952e \u795e \u64cd\uff0c\u5b66 \u4f1a \u76f4 \u63a5 \u9738 \u5c4f \u7ec8 \u7aef\uff01"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/52270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=52270"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/52270\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/52250"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=52270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=52270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=52270"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=52270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}