{"id":252413,"date":"2022-09-21T08:06:25","date_gmt":"2022-09-21T00:06:25","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=252413"},"modified":"2022-09-14T22:07:28","modified_gmt":"2022-09-14T14:07:28","slug":"unix-shell-commands","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/unix-shell-commands.html","title":{"rendered":"\u5982\u4f55\u7f16\u5199\u9ad8\u6548\u7684 Shell \u811a\u672c"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u5982\u679c\u4f60\u5e0c\u671b\u81ea\u52a8\u6267\u884c\u5e38\u89c4\u4efb\u52a1\u5e76\u4f7f\u4f60\u7684\u751f\u6d3b\u66f4\u8f7b\u677e\uff0c\u90a3\u4e48\u4f7f\u7528 Shell \u811a\u672c\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u9009\u62e9\u3002\u672c\u6587\u5c06\u5411\u4f60\u4ecb\u7ecd\u4e00\u4e9b\u57fa\u672c\u6982\u5ff5\uff0c\u8fd9\u4e9b\u6982\u5ff5\u5c06\u5e2e\u52a9\u4f60\u7f16\u5199\u9ad8\u6548\u7684 Shell \u811a\u672c\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n Shell \u811a\u672c\u662f\u4e00\u79cd\u88ab\u8bbe\u8ba1\u7528\u6765\u8fd0\u884c\u547d\u4ee4\u884c\u89e3\u91ca\u5668 UNIX Shell \u7684\u8ba1\u7b97\u673a\u7a0b\u5e8f\u3002Shell \u811a\u672c\u7684\u5404\u7c7b\u53d8\u79cd\u88ab\u89c6\u4f5c\u811a\u672c\u8bed\u8a00\u3002Shell \u811a\u672c\u6267\u884c\u7684\u5178\u578b\u64cd\u4f5c\u5305\u62ec\u6587\u4ef6\u64cd\u4f5c\u3001\u7a0b\u5e8f\u6267\u884c\u548c\u6587\u672c\u6253\u5370\u3002\u8bbe\u7f6e\u73af\u5883\u3001\u8fd0\u884c\u7a0b\u5e8f\u5e76\u6267\u884c\u4efb\u4f55\u5fc5\u8981\u7684\u6e05\u7406\u6216\u65e5\u5fd7\u8bb0\u5f55\u7684\u811a\u672c\u79f0\u4e3a\u5c01\u88c5\u3002<\/p>\n \u8bc6\u522b Shell \u547d\u4ee4\u63d0\u793a\u7b26<\/strong><\/div>\n \u4f60\u53ef\u4ee5\u901a\u8fc7\u67e5\u770b\u7ec8\u7aef\u7a97\u53e3\u4e2d\u7684\u63d0\u793a\u7b26\u7b26\u53f7\u6765\u8bc6\u522b Linux \u7cfb\u7edf\u7684\u8ba1\u7b97\u673a\u4e0a\u7684 Shell \u547d\u4ee4\u63d0\u793a\u7b26\u7684\u7528\u6237\u662f\u666e\u901a\u7528\u6237\u8fd8\u662f\u8d85\u7ea7\u7528\u6237\u3002#\u200b\u7b26\u53f7\u7528\u4e8e\u8d85\u7ea7\u7528\u6237\uff0c$\u7b26\u53f7\u7528\u4e8e\u5177\u6709\u6807\u51c6\u6743\u9650\u7684\u7528\u6237\u3002<\/p>\n \u57fa\u672c\u547d\u4ee4<\/strong><\/div>\n \u811a\u672c\u9644\u5e26\u4e86\u5f88\u591a\u53ef\u4ee5\u5728\u7ec8\u7aef\u7a97\u53e3\u4e0a\u6267\u884c\u7684\u3001\u7528\u4ee5\u7ba1\u7406\u60a8\u7684\u8ba1\u7b97\u673a\u7684\u547d\u4ee4\u3002\u6bcf\u4e2a\u547d\u4ee4\u7684\u8be6\u7ec6\u4fe1\u606f\u53ef\u4ee5\u5728\u8be5\u547d\u4ee4\u9644\u5e26\u7684\u4f7f\u7528\u624b\u518c\u4e2d\u627e\u5230\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u6765\u67e5\u770b\u624b\u518c\uff1a<\/p>\n \u4e00\u4e9b\u5e38\u7528\u7684\u547d\u4ee4\u6709\uff1a<\/p>\n \u6bcf\u4e2a\u547d\u4ee4\u90fd\u9644\u5e26\u4e86\u51e0\u4e2a\u53ef\u4ee5\u4e00\u8d77\u4f7f\u7528\u7684\u9009\u9879\u3002\u4f60\u53ef\u4ee5\u53c2\u8003\u4f7f\u7528\u624b\u518c\u4ee5\u4e86\u89e3\u66f4\u591a\u7684\u7ec6\u8282\u3002\u200b <\/p>\n Figure 1: Manual of date command<\/em><\/p>\n \u5f53\u4f60\u5e0c\u671b\u6355\u83b7\u6587\u4ef6\u4e2d\u7684\u547d\u4ee4\u8f93\u51fa\u6216\u91cd\u5b9a\u5411\u5230\u6587\u4ef6\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u91cd\u5b9a\u5411\u64cd\u4f5c\u7b26\u3002<\/p>\n \u5927\u62ec\u53f7\u6269\u5c55\u662f UNIX \u63d0\u4f9b\u7684\u5f3a\u5927\u9009\u9879\u4e4b\u4e00\u3002\u5b83\u6709\u52a9\u4e8e\u5728\u4e00\u884c\u6307\u4ee4\u4e2d\u4f7f\u7528\u6700\u5c11\u7684\u547d\u4ee4\u5b8c\u6210\u5927\u91cf\u64cd\u4f5c\u3002\u4f8b\u5982\uff1a<\/p>\n \u8fd9\u6761\u547d\u4ee4\u4f1a\u4e3a 2009 \u5230 2011 \u5e74\u91cc\u7684\u6bcf\u4e2a\u6708\u5efa\u7acb\u4e00\u4e2a\u76ee\u5f55\u3002<\/p>\n \u73af\u5883\u53d8\u91cf\u662f\u4e00\u4e2a\u52a8\u6001\u547d\u540d\u7684\u503c\uff0c\u5b83\u53ef\u4ee5\u5f71\u54cd\u8ba1\u7b97\u673a\u4e0a\u8fd0\u884c\u7684\u8fdb\u7a0b\u7684\u884c\u4e3a\u65b9\u5f0f\u3002\u6b64\u53d8\u91cf\u662f\u8fdb\u7a0b\u8fd0\u884c\u73af\u5883\u7684\u4e00\u90e8\u5206\u3002<\/p>\n \u7f51\u7edc\u547d\u4ee4\u5bf9\u4e8e\u6392\u67e5\u7f51\u7edc\u95ee\u9898\u548c\u68c0\u67e5\u8fde\u63a5\u5230\u5ba2\u6237\u673a\u7684\u7279\u5b9a\u7aef\u53e3\u975e\u5e38\u6709\u7528\u3002<\/p>\n \u200b\u200bgrep\u200b\u200b\u00a0\u547d\u4ee4\u7528\u4e8e\u67e5\u627e\u7cfb\u7edf\u548c\u65e5\u5fd7\u4e2d\u7684\u9519\u8bef\u3002\u5b83\u662f Shell \u62e5\u6709\u7684\u5f3a\u5927\u5de5\u5177\u4e4b\u4e00\u3002<\/p>\n \u4e0b\u9762\u662f\u4e00\u4e9b\u91cf\u8bcd\u7684\u4f8b\u5b50\uff1a<\/p>\n \u6587\u672c\u5904\u7406\u662f\u5f53\u4eca IT \u4e16\u754c\u4e2d\u7684\u53e6\u4e00\u9879\u91cd\u8981\u4efb\u52a1\u3002\u7a0b\u5e8f\u5458\u548c\u7ba1\u7406\u5458\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e9b\u547d\u4ee4\u6765\u5207\u7247\u3001\u526a\u5207\u548c\u5904\u7406\u6587\u672c\u3002<\/p>\n \u5728 Linux \u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u7b80\u5355\u7684\u547d\u4ee4\u6216\u63a7\u5236\u9009\u9879\u8fd4\u56de\u5230\u547d\u4ee4\u7684\u5386\u53f2\u8bb0\u5f55\u3002<\/p>\n \u4e00\u4e9b\u5386\u53f2\u547d\u4ee4\u7684\u6280\u5de7\uff1a<\/p>\n \u968f\u7740\u4f60\u5bf9 Linux \u547d\u4ee4\u9010\u6e10\u719f\u6089\uff0c\u4f60\u5c06\u80fd\u591f\u7f16\u5199\u5c01\u88c5\u811a\u672c\u3002\u6240\u6709\u624b\u52a8\u4efb\u52a1\uff0c\u5982\u5b9a\u671f\u5907\u4efd\u3001\u6e05\u7406\u6587\u4ef6\u3001\u76d1\u63a7\u7cfb\u7edf\u4f7f\u7528\u60c5\u51b5\u7b49\uff0c\u90fd\u53ef\u4ee5\u4f7f\u7528\u811a\u672c\u81ea\u52a8\u5b8c\u6210\u3002\u5728\u5b66\u4e60\u9ad8\u7ea7\u6982\u5ff5\u4e4b\u524d\uff0c\u672c\u6587\u5c06\u5e2e\u52a9\u60a8\u5f00\u59cb\u7f16\u5199\u811a\u672c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" Shell \u811a\u672c\u662f\u4e00\u79cd\u88ab\u8bbe\u8ba1\u7528\u6765\u8fd0\u884c\u547d\u4ee4\u884c\u89e3\u91ca\u5668 UNIX Shell \u7684\u8ba1\u7b97\u673a\u7a0b\u5e8f\u3002Shell \u811a\u672c\u7684\u5404\u7c7b\u53d8 […]<\/p>\n","protected":false},"author":323,"featured_media":233884,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-252413","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\/252413","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\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=252413"}],"version-history":[{"count":7,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/252413\/revisions"}],"predecessor-version":[{"id":252781,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/252413\/revisions\/252781"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/233884"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=252413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=252413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=252413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} |