{"id":81071,"date":"2023-10-13T18:16:06","date_gmt":"2023-10-13T10:16:06","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=81071"},"modified":"2023-10-13T18:16:06","modified_gmt":"2023-10-13T10:16:06","slug":"linux-fly-way","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-fly-way.html","title":{"rendered":"\u8ba9\u4f60\u7684Linux\u98de\u8d77\u6765\u76845\u4e2a\u5999\u62db"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u73a9\u513f\u7535\u8111\u6700\u6015\u7684\u5c31\u662f\u5361\u6162\uff0c\u90a3\u4e48\u7535\u8111\u5361\u6162\u5e94\u8be5\u600e\u4e48\u89e3\u51b3\u5462\uff1f\u5bf9\u4e8ewindows\u7cfb\u7edf\u6765\u8bf4\uff0c\u4f60\u53ef\u80fd\u6709\u5404\u79cd\u514d\u8d39\u7684\u6740\u6bd2\u8f6f\u4ef6\u3001\u5168\u5bb6\u6876\u5e2e\u4f60\u6e05\u7a7a\u7cfb\u7edf\u7a7a\u95f4\uff0c\u90a3\u4e48Linux\u7cfb\u7edf\u600e\u4e48\u529e\uff1f\u4eca\u5929\u7b14\u8005\u5c31\u4e3a\u5927\u5bb6\u4ecb\u7ecd\u51e0\u79cd\u65b9\u6cd5\uff0c\u6e05\u7a7a\u4f60\u7684Ubuntu\u6216\u8005\u5176\u4ed6\u57fa\u4e8eUbuntu\u7684Linux\u7cfb\u7edf\uff0c\u8ba9Linux\u7cfb\u7edf\u201c\u98de\u8d77\u6765\u201d\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u5f53\u7cfb\u7edf\u4f7f\u7528\u7684\u65f6\u95f4\u8d8a\u6765\u8d8a\u957f\uff0c\u7cfb\u7edf\u4e2d\u7684\u5b89\u88c5\u3001 \u5378\u8f7d\u7684\u7a0b\u5e8f\u53d8\u5f97\u8d8a\u6765\u8d8a\u591a\uff0c\u8ba9\u6574\u4e2a\u7cfb\u7edf\u770b\u8d77\u6765\u5f88\u81c3\u80bf\u3002\u5c24\u5176\u5bf9\u4e8e\u90a3\u4e9b\u53ea\u6709128GB\u7684SSD\u56fa\u6001\u786c\u76d8\u7684\u7b14\u8bb0\u672c\u800c\u8a00\uff0c\u91ca\u653e\u78c1\u76d8\u7a7a\u95f4\u53d8\u5f97\u5341\u5206\u5fc5\u8981\u3002<\/p>\n

\u4e3a\u4e86\u66f4\u597d\u5730\u4e3a\u5c0f\u767d\u63d0\u4f9b\u5e2e\u52a9\uff0c\u672c\u671fLinux\u5b9e\u9a8c\u5ba4\u63d0\u4f9b\u7684\u4e94\u79cd\u65b9\u6cd5\u90fd\u5177\u6709\u5f88\u9ad8\u7684\u5b89\u5168\u6027\uff0c\u5927\u5bb6\u53ef\u4ee5\u653e\u5fc3\u4f7f\u7528\u3002\u540c\u65f6\uff0c\u672c\u6587\u4f7f\u7528\u7684\u662fUbuntu16.04\u7cfb\u7edf\uff0c\u4f46\u4f60\u5982\u679c\u4f7f\u7528\u7684\u662f\u5176\u4ed6Ubuntu\u7248\u672c\u6216\u8005Linux Mint\u4e5f\u53ef\u4ee5\u91c7\u7528\u76f8\u540c\u7684\u6b65\u9aa4\u3002<\/p>\n

\u5220\u9664\u65e0\u7528\u7684\u5b89\u88c5\u5305<\/strong><\/span><\/div>\n

\u5728\u4e4b\u524d\u7684Linux\u5b9e\u9a8c\u5ba4\u4e2d\uff0c\u7b14\u8005\u4ecb\u7ecd\u8fc7apt-get\u53ca\u5176\u76f8\u4f3c\u547d\u4ee4\uff0c\u800c\u5728apt-get\u547d\u4ee4\u4e2d\uff0c\u6709\u4e00\u9879\u201cautoremove\u201d\u81ea\u52a8\u79fb\u9664\u9009\u9879\u3002\u8fd9\u4e2a\u9009\u9879\u80fd\u591f\u79fb\u9664\u4e00\u4e9b\u65e0\u7528\u7684\u81ea\u52a8\u5b89\u88c5\u5305\u548c\u5e93\uff0c\u4e5f\u53ef\u4ee5\u5220\u9664\u90a3\u4e9b\u5728\u7cfb\u7edf\u5347\u7ea7\u4e2d\u81ea\u52a8\u5b89\u88c5\u7684\u5c31\u5f97Linux\u5185\u6838\u3002<\/p>\n

\u8fd9\u662f\u4e00\u4e2a\u50bb\u74dc\u5f0f\u7684\u547d\u4ee4\uff0c\u4f60\u968f\u65f6\u90fd\u53ef\u4ee5\u8fd0\u884c\uff0c\u4ee5\u52a0\u5927\u4f60\u7684\u78c1\u76d8\u53ef\u7528\u7a7a\u95f4\u3002<\/p>\n

sudo apt-get autoremove<\/pre>\n

\"\"<\/p>\n

\u5982\u4f60\u6240\u89c1\uff0c\u8fd9\u4e2a\u547d\u4ee4\u80fd\u591f\u91ca\u653e\u6211\u7535\u8111\u4e2d\u7684300MB\u7a7a\u95f4\u3002<\/p>\n

\u6e05\u7a7a\u7cfb\u7edf\u4e2d\u7684APT\u7f13\u5b58<\/strong><\/span><\/div>\n

APT\u7684\u5168\u79f0\u662fAdvanced Package Tool\uff0c\u5373\u9ad8\u7ea7\u8f6f\u4ef6\u5305\u5de5\u5177\uff0c\u4ed6\u662f\u4e00\u4e2a\u6210\u719f\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u7cfb\u7edf\u3002Ubuntu\u4f7f\u7528APT\u5728\u7cfb\u7edf\u4e0a\u8fdb\u884c\u8f6f\u4ef6\u7684\u5b89\u88c5\u3001\u7ba1\u7406\u548c\u5378\u8f7d\uff0c\u800c\u5728\u8fdb\u884c\u8fd9\u4e9b\u64cd\u4f5c\u4e4b\u540e\uff0cAPT\u4f1a\u4fdd\u7559\u4ee5\u524d\u4e0b\u8f7d\u548c\u5b89\u88c5\u8fc7\u7684\u8f6f\u4ef6\u5305\u7f13\u5b58\u3002<\/p>\n

APT\u4f1a\u5c06DEB\u8f6f\u4ef6\u5305\u7f13\u5b58\u4fdd\u5b58\u5728\/var\/cache\/apt\/archives\u4e2d\uff0c\u800c\u968f\u7740\u65f6\u95f4\u7684\u9000\u5f79\uff0c\u8fd9\u4e2a\u7f13\u5b58\u4f1a\u53d8\u5f97\u8d8a\u6765\u8d8a\u5927\uff0c\u5176\u4e2d\u4e5f\u4f1a\u5305\u542b\u5927\u91cf\u4e0d\u9700\u8981\u7684\u8f6f\u4ef6\u5b89\u88c5\u5305\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e0b\u8fd9\u4e2a\u547d\u4ee4\u6765\u67e5\u770b\u4f60\u7684\u7f13\u5b58\u5927\u5c0f\uff1a<\/p>\n

sudo du -sh \/var\/cache\/apt<\/pre>\n

\u6b63\u5982\u4f60\u6240\u89c1\uff0cAPT\u5728\u8fd9\u4e2a\u7cfb\u7edf\u4e2d\u4e00\u5171\u6709581MB\u7684\u7a7a\u95f4\u5360\u7528\u3002\u5f53\u4f60\u5df2\u7ecf\u6ca1\u6709\u7a7a\u95f4\u53ef\u7528\u662f\uff0c500MB\u5df2\u7ecf\u662f\u4e00\u4e2a\u975e\u5e38\u6709\u610f\u4e49\u7684\u7a7a\u95f4\u4e86\u3002<\/p>\n

\"\"<\/p>\n

\u63a5\u4e0b\u6765\u4f60\u5c31\u6709\u4e24\u79cd\u65b9\u6cd5\u6765\u6e05\u7406\u8fd9\u4e9b\u7f13\u5b58\u4e86\uff0c\u524d\u4e00\u79cd\u7531\u7cfb\u7edf\u81ea\u52a8\u5224\u65ad\u6e05\u9664\uff0c\u800c\u540e\u4e00\u4e2a\u547d\u4ee4\u884c\u80fd\u591f\u6e05\u7a7a\u66f4\u5927\u7684\u7a7a\u95f4\u3002<\/p>\n

sudo apt-get autoclean\r\nsudo apt-get clean\r\n<\/pre>\n
\u6e05\u7406thumbnail\u7f13\u5b58<\/strong><\/span><\/div>\n

\u5bf9\u4e8eLinux\u4e3a\u5185\u6838\u7684\u5927\u591a\u6570\u7cfb\u7edf\u4e2d\uff08\u5305\u62ec\u5b89\u5353\uff09\uff0c\u90fd\u4f1a\u6709thumbnail\uff0c\u53ef\u4ee5\u76f4\u8bd1\u4e3a\u201c\u7f29\u7565\u56fe\u201d\uff0c\u4e5f\u5c31\u662f\u8bf4Ubuntu\u4f1a\u81ea\u52a8\u521b\u5efa\u4e00\u4e2a\u7f29\u7565\u56fe\u7248\u672c\uff0c\u5e76\u5b58\u50a8\u5728\u6587\u4ef6\u7ba1\u7406\u5668\u4e2d\u3002\u4e00\u822c\u6765\u8bb2\uff0c \u8fd9\u79cd\u7f29\u7565\u56fe\u5b58\u50a8\u5728\u4e00\u4e2a\u9690\u85cf\u76ee\u5f55\u4e2d\uff0c\u4f4d\u4e8e~\/.cache\/thumbnails<\/p>\n

\u5f53\u7136\uff0c\u968f\u7740\u65f6\u95f4\u63a8\u79fb\uff0c\u7f29\u7565\u56fe\u7684\u6570\u91cf\u4e5f\u5c06\u5927\u5927\u589e\u52a0\uff0c\u91cc\u9762\u7684\u6587\u4ef6\u4e5f\u4f1a\u8d8a\u6765\u8d8a\u5927\uff0c\u5982\u679c\u8981\u4e86\u89e3\u4f60\u7684thumbnail\u7684\u5927\u5c0f\u53ef\u4ee5\u7528\u8fd9\u4e2a\u547d\u4ee4\u6765\u67e5\u770b\uff0c\u53ef\u4ee5\u770b\u5230\u8be5\u7cfb\u7edf\u76ee\u524d\u6709380MB\u7684\u7f13\u5b58\u3002<\/p>\n

\"\"<\/p>\n

du -sh ~\/.cache\/thumbnails<\/pre>\n

\u7136\u540e\u4f60\u5c31\u53ef\u4ee5\u5728\u4efb\u4f55\u65f6\u95f4\u6e05\u7406\u4f60\u7684\u7f13\u5b58\u4e86\uff0c\u6700\u5feb\u901f\u7684\u65b9\u6cd5\u5c31\u662f\u7ec8\u7aef\u4e0a\u4f7f\u7528\u6e05\u7406\u547d\u4ee4\uff1a<\/p>\n

rm -rf ~\/.cache\/thumbnails\/*<\/pre>\n
\u5378\u8f7d\u4e0d\u5e38\u7528\u7684\u8f6f\u4ef6<\/strong><\/span><\/div>\n

\u603b\u6709\u5199\u8f6f\u4ef6\u6211\u4eec\u4e00\u5fc3\u6f6e\u6f8e\u6e43\u5c31\u4e0b\u8f7d\u4e86\uff0c\u7136\u800c\u4e0b\u8f7d\u540e\u534a\u5e74\u90fd\u4e0d\u7528\u4e00\u6b21\uff0c\u5bf9\u4e8e\u8fd9\u4e9b\u53ca\u5360\u7528\u7535\u8111\u8d44\u6e90\uff0c\u6709\u6ca1\u6709\u4ec0\u4e48\u5b9e\u9645\u610f\u4e49\u7684\u8f6f\u4ef6\uff0c\u6700\u597d\u7684\u529e\u6cd5\u5c31\u662f\u5378\u8f7d\u4e86\u5427\u3002<\/p>\n

\u5982\u679c\u4f60\u9700\u8981\u5378\u8f7d\u8fd9\u4e9b\u4f7f\u7528\u9891\u7387\u5f88\u4f4e\u7684\u8f6f\u4ef6\uff0c\u5e76\u4e14\u77e5\u9053\u8fd9\u4e2a\u8f6f\u4ef6\u7684\u540d\u5b57\u7684\u8bdd\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u8fdb\u884c\u5378\u8f7d\u3002<\/p>\n

sudo apt-get remove package-name1 package-name2<\/pre>\n
\u901a\u8fc7GUI\u6e05\u7406Ubuntu\u7a7a\u95f4<\/strong><\/span><\/div>\n

\u4ee5\u4e0a\u51e0\u79cd\u65b9\u6cd5\u53ef\u4ee5\u8bf4\u90fd\u662f\u7528\u547d\u4ee4\u884c\u7684\u65b9\u5f0f\u53bb\u6e05\u7406\u78c1\u76d8\u7a7a\u95f4\u7684\uff0c\u53ef\u80fd\u6709\u4e9b\u4eba\u5e76\u4e0d\u4e60\u60ef\u8fd9\u4e48\u505a\uff0c\u6bd5\u7adf\u4f60\u9700\u8981\u8bb0\u4f4f\u6240\u6709\u547d\u4ee4\uff0c\u5728\u4e00\u4e2a\u63a5\u4e00\u4e2a\u7684\u4f7f\u7528\u5b83\u4eec\uff0c\u6240\u4ee5\u8fd9\u91cc\u7ed9\u5927\u5bb6\u63a8\u8350\u4e00\u79cd\u901a\u8fc7GUI\u6765\u6e05\u7406\u5185\u5b58\u7a7a\u95f4\u7684\u65b9\u6cd5\u3002
\nLinux\u5b9e\u9a8c\u5ba4\uff1a\u4e94\u62db\u6e05\u7a7aLinux\u7cfb\u7edf\u7a7a\u95f4<\/p>\n

\"\"<\/p>\n

\u6bd4\u5982Stacer\u5c31\u662f\u8fd9\u6837\u4e00\u4e2a\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u5c55\u793a\u4f60\u7cfb\u7edf\u4e2d\u7684\u5185\u5b58\u3001CPU\u7b49\u5404\u79cd\u90e8\u4ef6\u72b6\u6001\u4fe1\u606f\uff0c\u5f53\u7136\u8fd8\u6709\u5f88\u591a\u5176\u4ed6\u7c7b\u4f3c\u7684\u5de5\u5177\uff0c\u7b49\u7740\u4f60\u4e0d\u65ad\u53bb\u53d1\u6398\u3002<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/server.zol.com.cn\/651\/6517349_all.html#p6517752<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/linux-fly-way.html<\/a>\u7f16\u8f91\uff1a\u82cf\u897f\u4e91\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb \u73a9\u513f\u7535\u8111\u6700\u6015\u7684\u5c31\u662f\u5361\u6162\uff0c\u90a3\u4e48\u7535\u8111\u5361\u6162\u5e94\u8be5\u600e\u4e48\u89e3\u51b3\u5462\uff1f\u5bf9\u4e8ewindows\u7cfb\u7edf\u6765\u8bf4\uff0c\u4f60\u53ef\u80fd\u6709\u5404\u79cd\u514d\u8d39\u7684\u6740\u6bd2\u8f6f […]<\/p>\n","protected":false},"author":63,"featured_media":81082,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-81071","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/81071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=81071"}],"version-history":[{"count":7,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/81071\/revisions"}],"predecessor-version":[{"id":81110,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/81071\/revisions\/81110"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/81082"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=81071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=81071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=81071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}