{"id":18432,"date":"2024-05-03T20:07:32","date_gmt":"2024-05-03T12:07:32","guid":{"rendered":"https:\/\/www.linuxcool.com\/ulzdczcydmln"},"modified":"2024-05-03T20:07:32","modified_gmt":"2024-05-03T12:07:32","slug":"ulzdczcydmln","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/ulzdczcydmln","title":{"rendered":"Ubuntu\uff08Linux\uff09\u7ec8\u7aef\u64cd\u4f5c\u5e38\u7528\u7684\u547d\u4ee4\u90a3\u51e0\u5341\u4e2a"},"content":{"rendered":"<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>Ubuntu(<a style='color:#0000CC;font-size:16px' href='https:\/\/www.linuxprobe.com\/' target='_blank' rel=\"noopener\">Linux<\/a>)\u7ec8\u7aef\u64cd\u4f5c\uff0c\u4f1a\u6d89\u53ca\u5230\u597d\u591a<a style='color:#0000CC;font-size:16px' href='https:\/\/www.linuxcool.com\/' target='_blank' rel=\"noopener\">\u547d\u4ee4<\/a>\uff0c\u800c\u4e14\u5e38\u7528\u7684\u547d\u4ee4\u5c31\u90a3\u51e0\u5341\u4e2a\uff0c\u4e0d\u987b\u8981\u523b\u610f\u7684\u53bb\u80cc\uff0c\u4f7f\u7528\u4e60\u60ef\u4e86\u5c31\u81ea\u7136\u8bb0\u4f4f\u4e86\u3002\u4e0d\u8981\u542c\u5230\u8981\u8bb0\u547d\u4ee4\u5c31\u611f\u89c9\u53ef\u6015\u3002\u6309\u71672080\u539f\u5219\uff0c80%\u60c5\u51b5\u4e0b\u53ea\u4f7f\u7528\u90a320%\u7684\u547d\u4ee4\uff0c\u5b9e\u9645\u60c5\u51b5\u4f1a\u66f4\u5c11\uff0c\u5e38\u7528\u7684\u53ef\u80fd\u5c31\u90a35%~10%\u7684\u547d\u4ee4\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2024\/05\/1714738041349_0.png' alt='\u7ec8\u7aef\u547d\u4ee4\u600e\u4e48\u505c\u6b62_linux\u7ec8\u7aef\u547d\u4ee4_\u7ec8\u7aef\u547d\u4ee4\u884c' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u6253\u5f00\u4e2d\u7aef<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u6253\u5f00\u7ec8\u7aef\u4e4b\u540e\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2024\/05\/1714738041349_1.png' alt='\u7ec8\u7aef\u547d\u4ee4\u600e\u4e48\u505c\u6b62_linux\u7ec8\u7aef\u547d\u4ee4_\u7ec8\u7aef\u547d\u4ee4\u884c' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u7ec8\u7aef\u754c\u9762<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u6211\u4eec\u5c31\u662f\u5728\u56fe\u6240\u793a\u754c\u9762\u4e0a\u8f93\u5165\u547d\u4ee4\u7684\uff0c\u7ec8\u7aef\u9ed8\u8ba4\u4f1a\u6709\u7c7b\u4f3c\u4e0b\u8fb9\u4e00\u884c\u6240\u793a\u7684\u4e00\u4e32\u63d0\u793a\u7b26:<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre>zuozhongkai@zuozhongkai-virtual-machine: ~$\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4e0a\u8ff0\u5b57\u7b26\u4e32\u4e2d\uff0c@\u540e\u9762\u7684\u201czuozhongkai\u201d\u662f\u5f53\u524d\u7684\u7528\u6237\u540d\u5b50\uff0c@\u65c1\u8fb9\u7684zuozhongkai-virtual-machine\u662f\u6211\u7684\u673a\u5668\u540d\u5b50\u3002\u6700\u540e\u9762\u7684\u7b26\u53f7\u201c$\u201d\u8868\u793a\u5f53\u524d\u7528\u6237\u662f\u666e\u901a\u7528\u6237\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u63d0\u793a\u7b26\u524d\u9762\u8f93\u5165\u547d\u4ee4\uff0c\u4f8b\u5982\u8f93\u5165\u547d\u4ee4\u201cls\u201d\uff0c\u547d\u4ee4\u201cls\u201d\u662f\u590d\u5370\u51fa\u5f53\u524d\u6240\u5728\u76ee\u5f55\u4e2d\u6240\u6709\u6587\u4ef6\u548c\u6587\u4ef6\u5939\uff0c\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2024\/05\/1714738041349_2.png' alt='\u7ec8\u7aef\u547d\u4ee4\u884c_linux\u7ec8\u7aef\u547d\u4ee4_\u7ec8\u7aef\u547d\u4ee4\u600e\u4e48\u505c\u6b62' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>ls\u547d\u4ee4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5728\u56fe\u4e2d\u6211\u4eec\u8f93\u5165\u4e86\u201cls\u201d\u8fd9\u4e2a\u547d\u4ee4\uff0c\u4e4b\u540e\u590d\u5370\u51fa\u4e86\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u548c\u6587\u4ef6\u5939\uff0c\u524d\u9762\u6211\u4eec\u5b66\u4e60\u547d\u4ee4\u7684\u65f6\u4faf\u5c31\u662f\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u76f8\u5e94\u547d\u4ee4\u7684\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5b66\u4e60linux\u7684\u65f6\u4faf\u4f1a\u9891\u7e41\u7684\u770b\u89c1Shell\u8fd9\u4e2a\u6210\u8bed\uff1f\u8fd9\u4e48\u54ea\u4e9b\u662fShell\u5462\uff1f\u7f51\u4e0a\u641c\u7d22\u4e00\u4e0b\uff0c\u5404\u7c7b\u4e13\u4e1a\u7684\u89e3\u91ca\u4e00\u5806\uff0c\u5e76\u4e14\u5bf9\u4e8e\u7b2c\u4e00\u6b21\u63a5\u89e6Linux\u7684\u4eba\u6765\u8bf4\u90a3\u4e9b\u4e13\u4e1a\u7684\u8bcd\u53e5\u53ea\u4f1a\u8ba9\u4eba\u66f4\u6655\u3002\u7b80\u5355\u7684\u8bf4Shell\u5c31\u662f\u6572\u547d\u4ee4\u3002\u56fd\u5916\u628aLinux\u4e0b\u901a\u8fc7\u547d\u4ee4\u884c\u8f93\u5165\u547d\u4ee4\u79f0\u4f5c\u201c\u6572\u547d\u4ee4\u201d\uff0c\u7f8e\u56fd\u4eba\u73a9\u7684\u6bd4\u8f83\u65f6\u9ae6\uff0c\u4eba\u5bb6\u79f0\u4f5c\u201cShell\u201d\u3002\u56e0\u800c\u4e4b\u540e\u770b\u89c1Shell\u8fd9\u4e2a\u6210\u8bed\u7b2c\u4e00\u53cd\u5e94\u5c31\u662f\u5728\u7ec8\u7aef\u4e2d\u6572\u547d\u4ee4\uff0c\u5c06\u591a\u4e2aShell\u547d\u4ee4\u6839\u636e\u4e00\u5b9a\u7684\u683c\u5f0f\u653e\u5728\u4e00\u4e2a\u6587\u672c\u4e2d\uff0c\u8fd9\u4e48\u8fd9\u4e2a\u6587\u672c\u5c31\u79f0\u4f5cShell\u811a\u672c\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4e25\u683c\u610f\u4e49\u4e0a\u6765\u8bb2\uff0cShell\u662f\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\uff0c\u5b83\u8d1f\u8d23\u63a5\u6536\u7528\u6237\u8f93\u5165\u7684\u547d\u4ee4\uff0c\u4e4b\u540e\u6309\u7167\u547d\u4ee4\u4f5c\u51fa\u76f8\u5e94\u7684\u52a8\u4f5c\uff0cShell\u8d1f\u8d23\u5c06\u5e94\u7528\u5c42\u6216\u5219\u7528\u6237\u8f93\u5165\u7684\u547d\u4ee4\u4f20\u9012\u7ed9<a style='color:#0000CC;font-size:16px' href='https:\/\/www.linuxdown.com\/' target='_blank' rel=\"noopener\">\u7cfb\u7edf<\/a>\u5185\u6838\uff0c\u7531\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u6765\u5b8c\u6210\u76f8\u5e94\u7684\u5de5\u4f5c\uff0c\u4e4b\u540e\u5c06\u7ed3\u679c\u53cd\u9988\u7ed9\u5e94\u7528\u5c42\u6216\u5219\u7528\u6237\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u540e\u9762\u6211\u4eec\u8bf4Shell\u5c31\u662f\u201c\u6572\u547d\u4ee4\u201d\uff0c\u8fd9\u4e48\u65e2\u7136\u662f\u547d\u4ee4\uff0c\u90a3\u80af\u5b9a\u662f\u6709\u683c\u5f0f\u7684\uff0cShell\u547d\u4ee4\u7684\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre>command -options [argument]\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>command:Shell\u547d\u4ee4\u540d\u79f0\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>options\uff1a\u9009\u9879\uff0c\u540c\u4e00\u79cd\u547d\u4ee4\u53ef\u80fd\u6709\u4e0d\u540c\u7684\u9009\u9879\uff0c\u4e0d\u540c\u7684\u9009\u9879\u5176\u5b9e\u73b0\u7684\u529f\u80fd\u4e0d\u540c\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>argument\uff1aShell\u547d\u4ee4\u662f\u53ef\u4ee5\u5e26\u53c2\u6570\u7684\uff0c\u4e5f\u53ef\u4ee5\u4e0d\u5e26\u53c2\u6570\u8fd0\u884c\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u540c\u6837\u4ee5\u547d\u4ee4\u201cls\u201d\u4e3a\u4f8b\uff0c\u4e0b\u8fb9\u201cls\u201d\u547d\u4ee4\u7684\u4e09\u79cd\u4e0d\u540c\u683c\u5f0f\u5176\u7ed3\u679c\u4e5f\u4e0d\u540c\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre>ls\nls \u2013l\nls \/usr\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u8fd9\u4e09\u79cd\u547d\u4ee4\u7684\u8fd0\u884c\u7ed3\u679c\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>ls\u547d\u4ee4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5728\u56fe\u4e2d\u201cls\u201d\u547d\u4ee4\u62ff\u6765\u590d\u5370\u51fa\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u548c\u6587\u4ef6\u5939\uff0c\u800c\u201cls-l\u201d\u540c\u6837\u662f\u590d\u5370\u51fa\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u548c\u6587\u4ef6\u5939\uff0c\u7136\u800c\u6b64\u547d\u4ee4\u4f1a\u5217\u4e3e\u6240\u6709\u6587\u4ef6\u548c\u6587\u4ef6\u5939\u7684\u8be6\u5c3d\u4fe1\u606f\uff0c\u4f8b\u5982\u6587\u4ef6\u5927\u5c0f\u3001\u62e5\u6709\u8005\u3001\u521b\u5efa\u65e5\u671f\u7b49\u7b49\u3002\u6700\u6709\u4e00\u4e2a\u201cls\/usr\u201d\u662f\u62ff\u6765\u590d\u5370\u51fa\u76ee\u5f55\u201c\/usr\u201d\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u548c\u6587\u4ef6\u5939\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>Shell\u547d\u4ee4\u662f\u652f\u6301\u624b\u52a8\u8865\u5168\u529f\u80fd\u7684\uff0c\u7531\u4e8eShell\u547d\u4ee4\u7279\u522b\u591a\uff0c\u5047\u82e5\u4e0d\u4f5c\u624b\u52a8\u8865\u5168\u7684\u8bdd\u5c31\u987b\u8981\u7528\u6237\u53bb\u8bb0\u5fc6\u90a3\u4e9b\u547d\u4ee4\u7684\u5168\u90e8\u5b57\u6bcd\u3002\u4f7f\u7528\u624b\u52a8\u8865\u5168\u529f\u80fd\u4e4b\u540e\u6211\u4eec\u53ea\u987b\u8981\u8f93\u5165\u547d\u4ee4\u7684\u540e\u9762\u4e00\u90e8\u4efd\u5b57\u6bcd\uff0c\u4e4b\u540e\u6309\u4e0bTAB\u952e\uff0c\u5047\u5982\u53ea\u6709\u4e00\u4e2a\u547d\u4ee4\u5339\u914d\u7684\u8bdd\u8fd8\u4f1a\u624b\u52a8\u8865\u5168\u8fd9\u4e2a\u547d\u4ee4\u5269\u4e0b\u7684\u5b57\u6bcd\u3002\u5018\u82e5\u6709\u591a\u4e2a\u547d\u4ee4\u5339\u914d\u7684\u8bdd\u7cfb\u7edf\u90fd\u4f1a\u53d1\u51fa\u62a5\u6848\u58f0\u97f3\uff0c\u6b64\u65f6\u5728\u6309\u4e0b\u4e00\u6b21TAB\u952e\u90fd\u4f1a\u5217\u4e3e\u6240\u6709\u5339\u914d\u7684\u547d\u4ee4\uff0c\u4f8b\u5982\u6211\u4eec\u8f93\u5165\u5b57\u6bcd\u201cif\u201d\uff0c\u4e4b\u540e\u6309\u4e0bTAB\u952e\uff0c\u7ed3\u679c\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u201cif\u201d\u5f00\u59cb\u7684\u547d\u4ee4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4ece\u56fe\u53ef\u4ee5\u770b\u51fa\uff0c\u4ee5\u201cif\u201d\u5f00\u5934\u7684\u547d\u4ee4\u67095\u4e2a\uff0c\u6211\u4eec\u4ee5\u201cifconfig\u201d\u4e3a\u4f8b\uff0c\u6b64\u547d\u4ee4\u662f\u62ff\u6765\u67e5\u770b\u7f51\u5361\u4fe1\u606f\u7684\uff0c\u6211\u4eec\u91cd\u65b0\u8f93\u5165\u201cifc\u201d\u7136\u540e\u5728\u6309\u4e00\u4e0bTAB\u952e\uff0c\u8fd8\u4f1a\u624b\u52a8\u8865\u5168\u51fa\u201cifconfig\u201d\u547d\u4ee4\uff0c\u7531\u4e8e\u4ee5\u201cifc\u201d\u5f00\u5934\u7684\u547d\u4ee4\u53ea\u6709\u4e00\u4e2a\uff0c\u7ed3\u679c\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2024\/05\/1714738041349_4.jpg' alt='\u7ec8\u7aef\u547d\u4ee4\u884c_\u7ec8\u7aef\u547d\u4ee4\u600e\u4e48\u505c\u6b62_linux\u7ec8\u7aef\u547d\u4ee4' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>ifconfig\u547d\u4ee4\u7ed3\u679c<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u6211\u4eec\u505a\u5d4c\u5165\u5f0f\u5f00\u53d1\u7528\u7684\u6700\u591a\u5c31\u662fShell\u547d\u4ee4\uff0cShell\u547d\u4ee4\u662f\u6240\u6709\u7684Linux\u7cfb\u7edf\u53d1\u884c\u7248\u6240\u901a\u7528\u7684\uff0c\u5e76\u4e0d\u662f\u8bf4\u6211\u5728Ubuntu\u4e0b\u5b66\u4f1a\u4e86Shell\u547d\u4ee4\uff0c\u6362\u53e6\u5916\u4e00\u4e2aLinux\u53d1\u884c\u7248\u64cd\u4f5c\u7cfb\u7edf\u4e4b\u540e\u5c31\u6ca1\u7528\u4e86(\u4e0d\u540c\u7684\u53d1\u884c\u7248Linux\u7cfb\u7edf\u53ef\u80fd\u4f1a\u81ea\u5b9a\u4e49\u4e00\u4e9b\u547d\u4ee4)\u3002\u672c\u8282\u6211\u4eec\u5148\u6765\u4ecb\u7ecd\u4e00\u4e9bShell\u4e0b\u5e38\u7528\u7684\u547d\u4ee4\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>1\u3001\u76ee\u5f55\u4fe1\u606f\u67e5\u770b\u547d\u4ee4ls<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u6587\u4ef6\u6d4f\u89c8\u662f\u6700\u57fa\u672c\u7684\u64cd\u4f5c\u4e86\uff0cShell\u4e0b\u6587\u4ef6\u6d4f\u89c8\u547d\u4ee4\u4e3als\uff0c\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre> ls [\u9009\u9879] [\u8def\u5f84] \n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>ls\u547d\u4ee4\u4e3b\u8981\u7528\u4e8e\u663e\u793a\u6307\u5b9a\u76ee\u5f55\u4e0b\u7684\u5185\u5bb9\uff0c\u5217\u4e3e\u6307\u5b9a\u76ee\u5f55\u4e0b\u5305\u542b\u7684\u6240\u6709\u7684\u6587\u4ef6\u4ee5\u53ca\u5b50\u76ee\u5f55\uff0c<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5b83\u7684\u4e3b\u8981\u53c2\u6570\u6709\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-a\u663e\u793a\u6240\u6709\u7684\u6587\u4ef6\u4ee5\u53ca\u5b50\u76ee\u5f55\uff0c\u5305\u62ec\u4ee5\u201c.\u201d\u5f00\u5934\u7684\u9690\u85cf\u6587\u4ef6\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-l\u663e\u793a\u6587\u4ef6\u7684\u8be6\u5c3d\u4fe1\u606f\uff0c\u4f8b\u5982\u6587\u4ef6\u7684\u5f62\u6001\u3001\u6743\u9650\u3001\u6240\u6709\u8005\u3001\u5927\u5c0f\u7b49\u4fe1\u606f\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-t\u5c06\u6587\u4ef6\u6839\u636e\u521b\u5efa\u65f6\u95f4\u6392\u5e8f\u5217\u4e3e\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-A\u548c-a\u4e00\u6837\uff0c\u800c\u4e14\u4e0d\u5217\u4e3e\u201c.\u201d(\u5f53\u524d\u76ee\u5f55)\u548c\u201c..\u201d(\u7236\u76ee\u5f55)\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-R\u9012\u5f52\u5217\u4e3e\u6240\u6709\u6587\u4ef6\uff0c\u5305\u62ec\u5b50\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>Shell\u547d\u4ee4\u4e0a\u9762\u7684\u53c2\u6570\u662f\u53ef\u4ee5\u7ec4\u5408\u5728\u4e00\u8d77\u7528\u7684\uff0c\u4f8b\u5982\u7ec4\u5408\u201c-al\u201d\u5c31\u662f\u663e\u793a\u6240\u6709\u6587\u4ef6\u7684\u8be6\u5c3d\u4fe1\u606f\uff0c\u5305\u62ec\u4ee5\u201c.\u201d\u5f00\u5934\u7684\u9690\u85cf\u6587\u4ef6\uff0cls\u547d\u4ee4\u4f7f\u7528\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2024\/05\/1714738041349_5.png' alt='linux\u7ec8\u7aef\u547d\u4ee4_\u7ec8\u7aef\u547d\u4ee4\u600e\u4e48\u505c\u6b62_\u7ec8\u7aef\u547d\u4ee4\u884c' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>ls\u547d\u4ee4\u6f14\u793a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u6ce8\u610f\u56fe\u4e2dtmp\u6587\u4ef6\u5939\u662f\u6211\u4e3a\u4e86\u6f14\u793a\u4fbf\u6377\uff0c\u81ea\u5df1\u521b\u5efa\u7684\uff0c\u4e0a\u9762\u7684\u6587\u4ef6a\uff0cb\u548cc\u4e5f\u662f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u6211\u521b\u5efa\u7684\uff0c\u5173\u4e8e\u6587\u4ef6\u5939\u548c\u6587\u4ef6\u7684\u521b\u5efa\u524d\u9762\u4f1a\u8be6\u5c3d\u7684\u8bb2\u89e3\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>2\u3001\u76ee\u5f55\u5207\u6362\u547d\u4ee4cd<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u8981\u60f3\u5728Shell\u4e2d\u5207\u6362\u5230\u5176\u5b83\u7684\u76ee\u5f55\uff0c\u4f7f\u7528\u7684\u547d\u4ee4\u662fcd\uff0c\u547d\u4ee4\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre> cd [\u8def\u5f84] \n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u8def\u5f84\u5c31\u662f\u6211\u4eec\u8981\u6b65\u5165\u7684\u76ee\u5f55\u8def\u5f84\uff0c\u4f8b\u5982\u4e0b\u8fb9\u6240\u793a\u64cd\u4f5c\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre>cd \/ \/\/\u8fdb\u5165\u5230\u6839\u76ee\u5f55\u201c\/\u201d\u4e0b\uff0cLinux \u7cfb\u7edf\u7684\u6839\u76ee\u5f55\u4e3a\u201c\/\u201d, \ncd \/usr \/\/\u8fdb\u5165\u5230\u76ee\u5f55\u201c\/usr\u201d\u91cc\u9762\u3002\ncd .. \/\/\u8fdb\u5165\u5230\u4e0a\u4e00\u7ea7\u76ee\u5f55\u3002\ncd ~ \/\/\u5207\u6362\u5230\u5f53\u524d\u7528\u6237\u4e3b\u76ee\u5f55\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4f8b\u5982\u6211\u4eec\u8981\u6b65\u5165\u5230\u76ee\u5f55\u201c\/usr\u201d\u4e0b\u53bb\uff0c\u4f46\u662f\u67e5\u770b\u201c\/usr\u201d\u4e0b\u6709\u54ea\u4e9b\u6587\u4ef6\uff0c\u64cd\u4f5c\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>cd\u547d\u4ee4\u6f14\u793a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5728\u56fe\u4e2d\uff0c\u6211\u4eec\u5148\u4f7f\u7528\u547d\u4ee4\u201ccd\/usr\u201d\u8fdb\u5165\u5230\u201c\/usr\u201d\u76ee\u5f55\u4e0b\uff0c\u4e4b\u540e\u4f7f\u7528\u201cls\u201d\u547d\u4ee4\u663e\u793a\u201c\/usr\u201d\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u3002\u4ed4\u7ec6\u89c2\u5bdf\u53ef\u4ee5\u770b\u89c1\uff0c\u5f53\u6211\u4eec\u5207\u6362\u5230\u5176\u5b83\u76ee\u5f55\u4e4b\u540e\u5728\u7b26\u53f7\u201c$\u201d\u524d\u9762\u90fd\u4f1a\u4ee5\u7ea2\u8272\u7684\u5b57\u4f53\u663e\u793a\u51fa\u5f53\u524d\u76ee\u5f55\u540d\u5b50\uff0c\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u76ee\u5f55\u8def\u5f84\u663e\u793a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2024\/05\/1714738041349_8.jpg' alt='linux\u7ec8\u7aef\u547d\u4ee4_\u7ec8\u7aef\u547d\u4ee4\u600e\u4e48\u505c\u6b62_\u7ec8\u7aef\u547d\u4ee4\u884c' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>3\u3001\u5f53\u524d\u8def\u5f84\u663e\u793a\u547d\u4ee4pwd<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>pwd\u547d\u4ee4\u62ff\u6765\u663e\u793a\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u7684\u7edd\u5bf9\u8def\u5f84\uff0c\u4e0d\u987b\u8981\u4efb\u4f55\u7684\u53c2\u6570\uff0c\u4f7f\u7528\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>PWD\u547d\u4ee4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>4\u3001\u7cfb\u7edf\u4fe1\u606f\u67e5\u770b\u547d\u4ee4uname<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u8981\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u4fe1\u606f\uff0c\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4uname\uff0c\u547d\u4ee4\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre> uname [\u9009\u9879] \n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u53ef\u9009\u7684\u9009\u9879\u53c2\u6570\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-r\u5217\u4e3e\u5f53\u524d\u7cfb\u7edf\u7684\u5177\u4f53\u5185\u6838\u7248\u672c\u53f7\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-s\u5217\u4e3e\u7cfb\u7edf\u5185\u6838\u540d\u79f0\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-o\u5217\u4e3e\u7cfb\u7edf\u4fe1\u606f\u3002\u4f7f\u7528\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2024\/05\/1714738041349_10.png' alt='\u7ec8\u7aef\u547d\u4ee4\u600e\u4e48\u505c\u6b62_linux\u7ec8\u7aef\u547d\u4ee4_\u7ec8\u7aef\u547d\u4ee4\u884c' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>uname\u547d\u4ee4\u64cd\u4f5c<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>5\u3001\u6e05\u5c4f\u547d\u4ee4clear<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>clear\u547d\u4ee4\u7528\u4e8e\u53bb\u9664\u7ec8\u7aef\u4e0a\u7684\u6240\u6709\u5185\u5bb9\uff0c\u53ea\u7559\u4e0b\u4e00\u884c\u63d0\u793a\u7b26\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>6\u3001\u5207\u6362\u7528\u6237\u6267\u884c\u8eab\u5206\u547d\u4ee4sudo<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>Ubuntu(Linux)\u662f\u4e00\u4e2a\u5141\u8bb8\u591a\u7528\u6237\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5176\u4e2d\u6743\u9650\u6700\u5927\u7684\u5c31\u662f\u8d85\u7ea7\u7528\u6237root\uff0c\u6709\u65f6\u4faf\u6211\u4eec\u6267\u884c\u4e00\u4e9b\u64cd\u4f5c\u7684\u65f6\u4faf\u662f\u987b\u8981\u7528root\u7528\u6237\u8eab\u5206\u80fd\u591f\u6267\u884c\uff0c\u4f8b\u5982\u5b89\u88c5\u8f6f\u4ef6\u3002\u901a\u8fc7sudo<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u547d\u4ee4\u53ef\u4ee5\u4f7f\u6211\u4eec\u6682\u65f6\u5c06\u8eab\u5206\u5207\u6362\u5230root\u7528\u6237\u3002\u5f53\u4f7f\u7528sudo\u547d\u4ee4\u7684\u65f6\u4faf\u662f\u987b\u8981\u8f93\u5165\u5bc6\u7801\u7684\uff0c\u8fd9\u513f\u8981\u6ce8\u610f\u8f93\u5165\u5bc6\u7801\u7684\u65f6\u4faf\u662f\u6ca1\u6709\u4efb\u4f55\u63d0\u793a\u7684\uff01\u547d\u4ee4\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre>sudo [\u9009\u9879] [\u547d\u4ee4]\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u9009\u9879\u4e3b\u8981\u53c2\u6570\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-h\u663e\u793a\u5e2e\u52a9\u4fe1\u606f\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-l\u5217\u4e3e\u5f53\u524d\u7528\u6237\u53ef\u6267\u884c\u4e0e\u4e0d\u53ef\u6267\u884c\u7684\u547d\u4ee4<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-p\u6539\u53d8\u5bfb\u95ee\u5bc6\u7801\u7684\u63d0\u793a\u7b26\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5982\u679c\u6211\u4eec\u5982\u4eca\u8981\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7528\u6237test\uff0c\u521b\u5efa\u65b0\u7528\u6237\u7684\u547d\u4ee4\u4e3a\u201cadduser\u201d\uff0c\u521b\u5efa\u65b0\u7528\u6237\u7684\u6743\u9650\u53ea\u6709root\u7528\u6237\u624d\u6709\uff0c\u6211\u4eec\u5728\u88c5\u7cfb\u7edf\u7684\u65f6\u4faf\u521b\u5efa\u7684\u90a3\u79cd\u7528\u6237\u662f\u6ca1\u6709\u8fd9\u4e2a\u6743\u9650\u7684\uff0c\u4f8b\u5982\u6211\u7684\u201czuozhongkai\u201d\u7528\u6237\u3002\u6240\u4ee5\u521b\u5efa\u65b0\u7528\u6237\u7684\u8bdd\u987b\u8981\u4f7f\u7528\u201csudo\u201d\u547d\u4ee4\u4ee5root\u7528\u6237\u6267\u884c\u201cadduser\u201d\u8fd9\u4e2a\u547d\u4ee4\uff0c\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2024\/05\/1714738041349_11.png' alt='\u7ec8\u7aef\u547d\u4ee4\u884c_linux\u7ec8\u7aef\u547d\u4ee4_\u7ec8\u7aef\u547d\u4ee4\u600e\u4e48\u505c\u6b62' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>sudo\u547d\u4ee4\u6f14\u793a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5728\u56fe2.2.4.6\u4e2d\uff0c\u6211\u4eec\u4e00\u5f00\u59cb\u76f4\u63a5\u4f7f\u7528\u201caddusertest\u201d\u547d\u4ee4\u6dfb\u52a0\u7528\u6237\u7684\u65f6\u4faf\u63d0\u793a\u6211\u4eec\u201cadduser\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u53ea\u6709root\u80fd\u591f\u5c06\u7528\u6237\u6216\u7ec4\u6dfb\u52a0\u5230\u7cfb\u7edf\u3002\u201d\u6240\u4ee5\u6211\u4eec\u8981\u5728\u4e0a\u9762\u52a0\u4e0a\u201csudo\u201d\u547d\u4ee4\uff0c\u8868\u793a\u4ee5root\u7528\u6237\u6267\u884cadduser\u64cd\u4f5c\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>7\u3001\u6dfb\u52a0\u7528\u6237\u547d\u4ee4adduser<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2024\/05\/1714738041349_12.jpg' alt='linux\u7ec8\u7aef\u547d\u4ee4_\u7ec8\u7aef\u547d\u4ee4\u600e\u4e48\u505c\u6b62_\u7ec8\u7aef\u547d\u4ee4\u884c' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5728\u8bb2\u89e3sudo\u547d\u4ee4\u7684\u65f6\u4faf\u6211\u4eec\u65e9\u5df2\u7528\u8fc7\u547d\u4ee4\u201cadduser\u201d\uff0c\u6b64\u547d\u4ee4\u987b\u8981root\u8eab\u5206\u53bb\u8fd0\u884c\u3002\u547d\u4ee4\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre> adduser [\u53c2\u6570] [\u7528\u6237\u540d] \n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5e38\u7528\u7684\u53c2\u6570\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-system\u6dfb\u52a0\u4e00\u4e2a\u7cfb\u7edf\u7528\u6237<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-homeDIRDIR\u8868\u793a\u7528\u6237\u7684\u4e3b\u76ee\u5f55\u8def\u5f84<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-uidIDID\u8868\u793a\u7528\u6237\u7684uid\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-ingroupGRP\u8868\u793a\u7528\u6237\u6240\u5c5e\u7684\u7ec4\u540d\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>adduser\u7684\u4f7f\u7528\u6211\u4eec\u4e0a\u9762\u65e9\u5df2\u6f14\u793a\u8fc7\u4e86\uff0c\u4f60\u4eec\u53ef\u4ee5\u8bd5\u7740\u518d\u6dfb\u52a0\u4e00\u4e2a\u7528\u6237\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>8\u3001\u5220\u9664\u7528\u6237\u547d\u4ee4deluser<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u540e\u9762\u8bb2\u4e86\u6dfb\u52a0\u7528\u6237\u7684\u547d\u4ee4<strong>linux\u7ec8\u7aef\u547d\u4ee4<\/strong>\uff0c\u90a3\u80af\u5b9a\u4e5f\u6709\u5220\u6389\u7528\u6237\u7684\u547d\u4ee4\uff0c\u5220\u6389\u7528\u6237\u4f7f\u7528\u547d\u4ee4\u201cdeluser\u201d\uff0c\u547d\u4ee4\u53c2\u6570\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre> deluser [\u53c2\u6570] [\u7528\u6237\u540d] \n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4e3b\u8981\u53c2\u6570\u6709\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-system\u5f53\u7528\u6237\u662f\u4e00\u4e2a\u7cfb\u7edf\u7528\u6237\u7684\u65f6\u4faf\u624d\u4f1a\u5220\u6389\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-remove-home\u5220\u6389\u7528\u6237\u7684\u4e3b\u76ee\u5f55<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-remove-all-files\u5220\u6389\u4e0e\u7528\u6237\u6709\u5173\u7684\u6240\u6709\u6587\u4ef6\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-backup\u5907\u4efd\u7528\u6237\u4fe1\u606f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u540c\u6837\u7684\uff0c\u547d\u4ee4\u201cdeluser\u201d\u4e5f\u8981\u4f7f\u7528\u201csudo\u201d\u6765\u4ee5root\u7528\u6237\u8fd0\u884c\uff0c\u4ee5\u5220\u6389\u6211\u4eec\u4e0a\u9762\u521b\u5efa\u7684\u7528\u6237test\u4e3a\u4f8b\uff0cdeluser\u4f7f\u7528\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2024\/05\/1714738041349_13.png' alt='\u7ec8\u7aef\u547d\u4ee4\u600e\u4e48\u505c\u6b62_\u7ec8\u7aef\u547d\u4ee4\u884c_linux\u7ec8\u7aef\u547d\u4ee4' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u547d\u4ee4deluser\u6f14\u793a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>9\u3001\u5207\u6362\u7528\u6237\u547d\u4ee4su<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u540e\u9762\u5728\u8bb2\u89e3\u547d\u4ee4\u201csudo\u201d\u7684\u65f6\u4faf\u8bf4\u8fc7\uff0c\u201csudo\u201d\u662f\u4ee5root\u7528\u6237\u8eab\u5206\u6267\u884c\u4e00\u4e2a\u547d\u4ee4\uff0c\u5e76\u6ca1\u6709\u4fee\u6539\u5f53\u524d\u7684\u7528\u6237\u8eab\u5206\uff0c\u6240\u6709\u987b\u8981root\u8eab\u5206\u6267\u884c\u7684\u547d\u4ee4\u90fd\u5fc5\u987b\u5728\u4e0a\u9762\u52a0\u4e0a\u201csudo\u201d\u3002\u547d\u4ee4\u201csu\u201d\u53ef\u4ee5\u76f4\u63a5\u5c06\u5f53\u524d\u7528\u6237\u5207\u6362\u4e3aroot\u7528\u6237\uff0c\u5207\u6362\u5230root\u7528\u6237\u4e4b\u540e\u5c31\u53ef\u4ee5\u6063\u610f\u5730\u6063\u610f\u4efb\u4f55\u64cd\u4f5c\u4e86\uff01\u7531\u4e8e\u4f60\u5df2\u7136\u83b7\u5f97\u4e86\u7cfb\u7edf\u6700\u9ad8\u6743\u9650\uff0c\u5728root\u7528\u6237\u4e0b\uff0c\u6240\u6709\u7684\u547d\u4ee4\u90fd\u53ef\u4ee5\u65e0\u969c\u788d\u6267\u884c\uff0c\u4e0d\u987b\u8981\u5728\u4e0a\u9762\u52a0\u4e0a\u201csudo\u201d\uff0c\u201csu\u201d\u547d\u4ee4\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre> su [\u9009\u9879] [\u7528\u6237\u540d] \n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5e38\u7528\u9009\u9879\u53c2\u6570\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-c\u2013command\u6267\u884c\u6307\u5b9a\u7684\u547d\u4ee4\uff0c\u6267\u884c\u5b8c\u6bd5\u4e4b\u540e\u56de\u590d\u539f\u7528\u6237\u8eab\u5206\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-login\u6539\u53d8\u7528\u6237\u8eab\u5206\uff0c\u540c\u65f6\u6539\u53d8\u5de5\u4f5c\u76ee\u5f55\u548cPATH\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-m\u6539\u53d8\u7528\u6237\u8eab\u5206\u7684\u65f6\u4faf\u4e0d\u6539\u53d8\u73af\u5883\u53d8\u91cf<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-h\u663e\u793a\u5e2e\u52a9\u4fe1\u606f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4ee5\u5207\u6362\u5230root\u7528\u6237\u4e3a\u4f8b\uff0c\u4f7f\u7528\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>su\u547d\u4ee4\u6f14\u793a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5728\u56fe\u4e2d\uff0c\u5148\u4f7f\u7528\u547d\u4ee4\u201csudosu\u201d\u5207\u6362\u5230root\u7528\u6237\uff0csu\u547d\u4ee4\u4e0d\u5199\u660e\u7528\u6237\u540d\u7684\u8bdd\u9ed8\u8ba4\u5207\u6362\u5230root\u7528\u6237\u3002\u4e4b\u540e\u8f93\u5165\u5bc6\u7801\uff0c\u5bc6\u7801\u6b63\u786e\u7684\u8bdd\u8fd8\u4f1a\u5207\u6362\u5230root\u7528\u6237\uff0c\u53ef\u4ee5\u770b\u89c1\u5207\u6362\u5230root\u7528\u6237\u4e4b\u540e\u63d0\u793a\u7b26\u7684\u201c@\u201d\u7b26\u53f7\u540e\u9762\u7684\u7528\u6237\u540d\u5f04\u6210\u4e86\u201croot\u201d\uff0c\u8868\u793a\u5f53\u524d\u7684\u7528\u6237\u662froot\u7528\u6237\u3002\u800c\u4e14\u4ee5\u201c#\u201d\u7ed3\u675f\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u6ce8\u610f\uff01\uff01\u56e0\u4e3aroot\u7528\u6237\u6743\u9650\u592a\u5927\uff0c\u7a0d\u7a0d\u4e0d\u6ce8\u610f\u5c31\u53ef\u80fd\u5220\u6389\u6389\u7cfb\u7edf\u6587\u4ef6\uff0c\u9020\u6210\u7cfb\u7edf\u5954\u6e83\uff0c\u56e0\u800c\u5f3a\u70c8\u5efa\u8bae\u4f60\u4eec\uff0c\u4e0d\u8981\u4ee5root\u7528\u6237\u8fd0\u884cUbuntu\u3002\u5f53\u8981\u7528\u5230root\u8eab\u5206\u6267\u884c\u4e2a\u522b\u547d\u4ee4\u7684\u65f6\u4faf\u4f7f\u7528\u201csudo\u201d\u547d\u4ee4\u5373\u53ef\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u8981\u5207\u6362\u56de\u539f\u5148\u7684\u7528\u6237\uff0c\u4f7f\u7528\u547d\u4ee4\u201csudosu\u7528\u6237\u540d\u201d\u5373\u53ef\uff0c\u4f8b\u5982\u6211\u8981\u4eceroot\u5207\u6362\u56dezuozhongkai\u8fd9\u4e2a\u7528\u6237\uff0c\u64cd\u4f5c\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5207\u6362\u4e3a\u539f\u5148\u7528\u6237<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>10\u3001\u663e\u793a\u6587\u4ef6\u5185\u5bb9\u547d\u4ee4cat<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u67e5\u770b\u6587\u4ef6\u5185\u5bb9\u662f\u6700\u5e38\u89c1\u7684\u64cd\u4f5c\u4e86\uff0c\u5728windows\u4e0b\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u8bb0\u4e8b\u672c\u67e5\u770b\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\u5185\u5bb9\uff0clinux\u4e0b\u4e5f\u6709\u7c7b\u4f3c\u8bb0\u4e8b\u672c\u7684\u8f6f\u4ef6\uff0c\u79f0\u4f5cgedit\uff0c\u627e\u5230\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\uff0c\u53cc\u51fb\u6253\u5f00\uff0c\u9ed8\u8ba4\u4f7f\u7528\u7684\u5c31\u662fgedit\uff0c\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2024\/05\/1714738041349_16.png' alt='\u7ec8\u7aef\u547d\u4ee4\u884c_linux\u7ec8\u7aef\u547d\u4ee4_\u7ec8\u7aef\u547d\u4ee4\u600e\u4e48\u505c\u6b62' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u6253\u5f00\u6587\u6863<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u6211\u4eec\u5982\u4eca\u8bb2\u89e3\u7684\u662fShell\u547d\u4ee4\uff0c\u8fd9\u4e48Shell\u4e0b\u6709\u6ca1\u6709\u529e\u6cd5\u8bfb\u53d6\u6587\u4ef6\u7684\u5185\u5bb9\u5462\uff1f\u80af\u5b9a\u6709\u7684\uff0c\u90a3\u5c31\u662f\u547d\u4ee4\u201ccat\u201d\uff0c\u547d\u4ee4\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre> cat [\u9009\u9879] [\u6587\u4ef6] \n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u9009\u9879\u4e3b\u8981\u53c2\u6570\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-n\u75311\u5f00\u59cb\u5bf9\u6240\u6709\u8f93\u51fa\u7684\u884c\u8fdb\u884c\u7f16\u53f7\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-b\u548c-n\u7c7b\u4f3c\uff0c\u5e76\u4e14\u4e0d\u5bf9\u7a7a\u767d\u884c\u7f16\u53f7\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>-s\u5f53\u9047\u89c1\u8fde\u7eed\u4e24\u4e2a\u884c\u4ee5\u4e0a\u7a7a\u767d\u884c\u7684\u8bdd\u5c31\u5408\u5e76\u4e3a\u4e00\u4e2a\u884c\u7a7a\u767d\u884c\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4f8b\u5982\u6211\u4eec\u4ee5\u67e5\u770b\u6587\u4ef6\u201c\/etc\/environment\u201d\u7684\u5185\u5bb9\u4e3a\u4f8b\uff0c\u7ed3\u679c\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u547d\u4ee4cat\u6f14\u793a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>11\u3001\u663e\u793a\u548c\u914d\u7f6e\u7f51\u8def\u5c5e\u6027\u547d\u4ee4ifconfig<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>ifconfig\u662f\u4e00\u4e2a\u8ddf\u7f51\u8def\u5c5e\u6027\u914d\u7f6e\u548c\u663e\u793a\u5bc6\u5207\u76f8\u5173\u7684\u547d\u4ee4\uff0c\u901a\u8fc7\u6b64\u547d\u4ee4\u6211\u4eec\u53ef\u4ee5\u67e5\u770b\u5f53\u524d\u7f51\u8def\u5c5e\u6027\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u6b64\u547d\u4ee4\u914d\u7f6e\u7f51\u8def\u5c5e\u6027\uff0c\u4f8b\u5982\u8bbe\u7f6e\u7f51\u8defIP\u5730\u5740\u7b49\u7b49\uff0c\u6b64\u547d\u4ee4\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre> ifconfig interface options | address \n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4e3b\u8981\u53c2\u6570\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>interface\u7f51\u8def\u63d2\u53e3\u540d\u79f0\uff0c\u4f8b\u5982eth0\u7b49\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>up\u5f00\u542f\u7f51\u8def\u8bbe\u5907\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>down\u5173\u6389\u7f51\u8def\u8bbe\u5907\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>addIP\u5730\u5740\uff0c\u8bbe\u7f6e\u7f51\u8defIP\u5730\u5740\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>netmaskadd\u5b50\u7f51\u7f51\u6bb5\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u547d\u4ee4ifconfig\u7684\u4f7f\u7528\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2024\/05\/1714738041349_18.jpg' alt='linux\u7ec8\u7aef\u547d\u4ee4_\u7ec8\u7aef\u547d\u4ee4\u884c_\u7ec8\u7aef\u547d\u4ee4\u600e\u4e48\u505c\u6b62' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>ifconfig\u547d\u4ee4\u6f14\u793a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5728\u56fe\u4e2d\u6709\u4e24\u4e2a\u7f51\u5361\uff1aens33\u548clo\uff0cens33\u662f\u6211\u7684\u7b14\u8bb0\u672c\u5b9e\u9645\u4f7f\u7528\u7684\u7f51\u5361\uff0clo\u662f\u56de\u6d4b\u7f51\u5361\u3002\u53ef\u4ee5\u770b\u51fa\u7f51\u5361ens33\u7684IP\u5730\u5740\u4e3a192.168.31.235\uff0c\u6211\u4eec\u4f7f\u7528\u547d\u4ee4\u201cifconfig\u201d\u5c06\u7f51\u5361ens33\u7684IP\u5730\u5740\u6539\u4e3a192.168.31.20\uff0c\u64cd\u4f5c\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u66f4\u6539\u7f51\u5361IP\u5730\u5740<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4ece\u56fe\u4e2d\u53ef\u4ee5\u770b\u51fa\uff0c\u6211\u5728\u4f7f\u7528\u547d\u4ee4\u201cifconfig\u201d\u4fee\u6539\u7f51\u5361ens33\u7684IP\u5730\u5740\u7684\u65f6\u4faf\u4f7f\u7528\u4e86\u201csudo\u201d\uff0c\u8bf4\u660e\u5728Ubuntu\u4e0b\u66f4\u6539\u7f51\u5361IP\u5730\u5740\u662f\u987b\u8981root\u7528\u6237\u6743\u9650\u7684\u3002\u5f53\u66f4\u6539\u5b8c\u4e4b\u540e\u4f7f\u7528\u547d\u4ee4\u201cifconfigens33\u201d\u518d\u6b21\u67e5\u770b\u7f51\u5361ens33\u7684\u547d\u4ee4\uff0c\u53d1\u89c9\u7f51\u5361ens33\u7684IP\u5730\u5740\u5f04\u6210\u4e86192.168.31.20\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>12\u3001\u7cfb\u7edf\u5e2e\u52a9\u547d\u4ee4man<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>Ubuntu\u7cfb\u7edf\u4e2d\u6709\u597d\u591a\u547d\u4ee4\uff0c\u8fd9\u79cd\u547d\u4ee4\u90fd\u6709\u4e0d\u540c\u7684\u683c\u5f0f\uff0c\u4e0d\u540c\u7684\u683c\u5f0f\u5bf9\u5e94\u4e0d\u540c\u7684\u529f\u80fd\uff0c\u8981\u5b8c\u5168\u8bb0\u4f4f\u90a3\u4e9b\u547d\u4ee4\u548c\u683c\u5f0f\u51e0\u4e4e\u662f\u4e0d\u53ef\u80fd\u7684\uff0c\u5fc5\u987b\u6709\u4e00\u4e2a\u5e2e\u52a9\u6307\u5357\uff0c\u5f53\u6211\u4eec\u987b\u8981\u4e86\u89e3\u4e00\u4e2a\u547d\u4ee4\u7684\u8be6\u5c3d\u4fe1\u606f\u7684\u65f6\u4faf\u67e5\u9605\u8fd9\u4e2a\u5e2e\u52a9\u6307\u5357\u5c31\u884c\u4e86\u3002Ubuntu\u63d0\u4f9b\u4e86\u4e00\u4e2a\u547d\u4ee4\u6765\u5e2e\u52a9\u7528\u6237\u5b8c\u6210\u8fd9\u4e2a\u529f\u80fd\uff0c\u90a3\u5c31\u662f\u201cman\u201d\u547d\u4ee4linux\u542f\u52a8\u76d8\u5236\u4f5c\u5de5\u5177\uff0c\u901a\u8fc7\u201cman\u201d\u547d\u4ee4\u53ef\u4ee5\u67e5\u770b\u5176\u5b83\u547d\u4ee4\u7684\u53e5\u578b\u683c\u5f0f\u3001\u4e3b\u8981\u529f\u80fd\u3001\u4e3b\u8981\u53c2\u6570\u8bf4\u660e\u7b49\uff0c\u201cman\u201d\u547d\u4ee4\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre> man [\u547d\u4ee4\u540d] \n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4f8b\u5982\u6211\u4eec\u8981\u67e5\u770b\u547d\u4ee4\u201cifconfig\u201d\u7684\u8bf4\u660e\uff0c\u8f93\u5165\u201cmanifconfig\u201d\u5373\u53ef\uff0c\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>man\u547d\u4ee4\u6f14\u793a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u56fe\u6240\u793a\u7684\u547d\u4ee4\uff0c\u4e4b\u540e\u70b9\u51fb\u56de\u8f66\u952e\u90fd\u4f1a\u6253\u5f00\u201cifconfig\u201d\u8fd9\u4e2a\u547d\u4ee4\u7684\u8be6\u5c3d\u8bf4\u660e\uff0c\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2024\/05\/1714738041349_20.png' alt='linux\u7ec8\u7aef\u547d\u4ee4_\u7ec8\u7aef\u547d\u4ee4\u600e\u4e48\u505c\u6b62_\u7ec8\u7aef\u547d\u4ee4\u884c' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u547d\u4ee4ifconfig\u8be6\u5c3d\u7528\u6cd5\u4fe1\u606f<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4e0a\u56fe\u5c31\u662f\u547d\u4ee4\u201cifconfig\u201d\u7684\u8be6\u5c3d\u4ecb\u7ecd\u4fe1\u606f\uff0c\u6309\u201cq\u201d\u952e\u9000\u51fa\u5230\u7ec8\u7aef\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>13\u3001\u7cfb\u7edf\u91cd\u542f\u547d\u4ee4reboot<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u901a\u8fc7\u70b9\u51fbUbuntu\u4e3b\u754c\u9762\u53f3\u4e0a\u89d2\u7684\u8717\u6746\u6309\u952e\u6765\u9009\u62e9\u6b7b\u673a\u6216\u5219\u91cd\u542f\u7cfb\u7edf\uff0c\u540c\u6837\u7684\u6211\u4eec\u4e5f\u53ef\u4ee5\u4f7f\u7528Shell\u547d\u4ee4\u201creboot\u201d\u6765\u91cd\u542f\u7cfb\u7edf\uff0c\u76f4\u63a5\u8f93\u5165\u547d\u4ee4\u201creboot\u201d\u7136\u540e\u70b9\u51fb\u56de\u8f66\u952e\u63d2\u53e3\uff0c\u5982\u53f3\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>reboot\u547d\u4ee4\u6f14\u793a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>14\u3001\u7cfb\u7edf\u5173\u6389\u547d\u4ee4poweroff<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4f7f\u7528\u547d\u4ee4\u201creboot\u201d\u53ef\u4ee5\u91cd\u542f\u7cfb\u7edf\uff0c\u4f7f\u7528\u547d\u4ee4\u201cpoweroff\u201d\u5c31\u53ef\u4ee5\u5173\u6389\u7cfb\u7edf\uff0c\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u547d\u4ee4\u201cpoweroff\u201d\u7136\u540e\u6309\u4e0b\u56de\u8f66\u952e\u5373\u53ef\u5173\u6389Ubuntu\u7cfb\u7edf\uff0c\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>poweroff\u547d\u4ee4\u4f7f\u7528<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>15\u3001\u8f6f\u4ef6\u5b89\u88c5\u547d\u4ee4install<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u622a\u6b62\u76ee\u524d\uff0c\u6211\u4eec\u90fd\u6ca1\u6709\u8bb2\u8fc7Ubuntu\u4e0b\u600e\u6837\u5b89\u88c5\u8f6f\u4ef6<strong>linux\u7ec8\u7aef\u547d\u4ee4<\/strong>\uff0c\u7531\u4e8eUbuntu\u5b89\u88c5\u8f6f\u4ef6\u4e0d\u50cfWindows\u4e0b\u90a3\u6837\uff0c\u76f4\u63a5\u53cc\u51fb.exe\u6587\u4ef6\u5c31\u5f00\u59cb\u5b89\u88c5\u4e86\u3002Ubuntu\u4e0b\u597d\u591a\u8f6f\u4ef6\u662f\u987b\u8981\u5148\u81ea\u884c\u4e0b\u8f7d\u6e90\u7801\uff0c\u4e0b\u8f7d\u6e90\u7801\u4e4b\u540e\u81ea\u884c\u7f16\u8bd1\uff0c\u7f16\u8bd1\u5b8c\u6210\u4e4b\u540e\u4f7f\u7528\u547d\u4ee4\u201cintsall\u201d\u6765\u5b89\u88c5\u3002\u5176\u5b9eUbuntu\u4e0b\u4e5f\u6709\u5176\u5b83\u7684\u8f6f\u4ef6\u5b89\u88c5\u65b9\u5f0f\uff0c\u5e76\u4e14\u7528\u7684\u6700\u591a\u7684\u5c31\u662f\u81ea\u884c\u7f16\u8bd1\u6e90\u7801\u4e4b\u540e\u5b89\u88c5\uff0c\u5c24\u5176\u662f\u5d4c\u5165\u5f0fLinux\u5f00\u53d1\u3002\u547d\u4ee4\u201cinstall\u201d\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre>install [\u9009\u9879]... [-T] \u6e90\u6587\u4ef6 \u76ee\u6807\u6587\u4ef6\n\u6216\uff1ainstall [\u9009\u9879]... \u6e90\u6587\u4ef6... \u76ee\u5f55\n\u6216\uff1ainstall [\u9009\u9879]... -t \u76ee\u5f55 \u6e90\u6587\u4ef6...\n\u6216\uff1ainstall [\u9009\u9879]... -d \u76ee\u5f55...\n<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u201cinstall\u201d\u547d\u4ee4\u662f\u5c06\u6587\u4ef6(\u4e00\u822c\u662f\u7f16\u8bd1\u540e\u7684\u6587\u4ef6)\u590d\u5236\u5230\u76ee\u7684\u4f4d\u7f6e\uff0c\u5728\u524d\u4e09\u79cd\u65b9\u5f0f\u4e2d\uff0c\u5c06\u6e90\u6587\u4ef6\u590d\u5236\u5230\u76ee\u6807\u6587\u4ef6\u6216\u5c06\u591a\u4e2a\u6e90\u6587\u4ef6\u590d\u5236\u5230\u4e00\u4e2a\u5df2\u5b58\u5728\u7684\u76ee\u5f55\u4e2d\u540c\u65f6\u8bbe\u7f6e\u5176\u6240\u6709\u6743\u548c\u6743\u9650\u6a21\u5f0f\u3002\u5728\u7b2c\u56db\u79cd\u65b9\u5f0f\u4f1a\u521b\u5efa\u6307\u5b9a\u7684\u76ee\u5f55\u3002\u547d\u4ee4\u201cinstall\u201d\u901a\u5e38\u548c\u547d\u4ee4\u201capt-get\u201d\u7ec4\u5408\u5728\u4e00\u8d77\u4f7f\u7528\u7684\uff0c\u5173\u4e8e\u201capt-get\u201d\u547d\u4ee4\u6211\u4eec\u7a0d\u540e\u4f1a\u8bb2\u89e3\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4ee5\u4e0a\u5c31\u662fShell\u6700\u57fa\u672c\u4e00\u4e9b\u547d\u4ee4linux\u89e3\u538b\u547d\u4ee4\uff0c\u8fd8\u6709\u4e00\u4e9b\u5176\u5b83\u7684\u547d\u4ee4\u6211\u4eec\u5728\u524d\u9762\u5728\u8bb2\u89e3\uff0c\u5faa\u5e8f\u6e10\u8fdb\u561b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u56fe\u4e2d\u6211\u4eec\u8f93\u5165\u4e86\u201cls\u201d\u8fd9\u4e2a\u547d\u4ee4\uff0c\u7136\u540e\u6253\u5370\u51fa\u4e86\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u548c\u6587\u4ef6\u5939\uff0c\u540e\u9762\u6211\u4eec\u5b66\u4e60\u547d\u4ee4\u7684\u65f6\u5019\u5c31\u662f\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u76f8\u5e94\u547d\u4ee4\u7684\u3002\u8d1f\u8d23\u5c06\u5e94\u7528\u5c42\u6216\u8005\u7528\u6237\u8f93\u5165\u7684\u547d\u4ee4\u4f20\u9012\u7ed9\u7cfb\u7edf\u5185\u6838\uff0c\u7531\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u6765\u5b8c\u6210\u76f8\u5e94\u7684\u5de5\u4f5c\uff0c\u7136\u540e\u5c06\u7ed3\u679c\u53cd\u9988\u7ed9\u5e94\u7528\u5c42\u6216\u8005\u7528\u6237\u3002<\/p>\n","protected":false},"author":1,"featured_media":18433,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[152,190,23,46,151],"class_list":["post-18432","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge","tag-lqhyh","tag-lcjwj","tag-lxt","tag-s-2","tag-s-5"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/18432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=18432"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/18432\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media\/18433"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=18432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=18432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=18432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}