{"id":123,"date":"2019-03-09T18:34:22","date_gmt":"2019-03-09T10:34:22","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=123"},"modified":"2022-05-03T16:20:50","modified_gmt":"2022-05-03T08:20:50","slug":"echo","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/echo","title":{"rendered":"echo\u547d\u4ee4 – \u8f93\u51fa\u5b57\u7b26\u4e32\u6216\u63d0\u53d6\u540e\u7684\u53d8\u91cf\u503c"},"content":{"rendered":"\n
echo\u662f\u7528\u4e8e\u5728\u7ec8\u7aef\u8bbe\u5907\u4e0a\u8f93\u51fa\u6307\u5b9a\u5b57\u7b26\u4e32\u6216\u53d8\u91cf\u63d0\u53d6\u540e\u503c\u7684\u547d\u4ee4\uff0c\u80fd\u591f\u7ed9\u7528\u6237\u4e00\u4e9b\u7b80\u5355\u7684\u63d0\u9192\u4fe1\u606f\uff0c\u4e5f\u53ef\u4ee5\u5c06\u8f93\u51fa\u7684\u6307\u5b9a\u5b57\u7b26\u4e32\u5185\u5bb9\u540c\u7ba1\u9053\u7b26\u4e00\u8d77\u4f20\u9012\u7ed9\u540e\u7eed\u547d\u4ee4\u4f5c\u4e3a\u6807\u51c6\u8f93\u5165\u4fe1\u606f\u518d\u6765\u8fdb\u884c\u4e8c\u6b21\u5904\u7406\uff0c\u53c8\u6216\u8005\u540c\u8f93\u51fa\u91cd\u5b9a\u5411\u7b26\u4e00\u8d77\u64cd\u4f5c\uff0c\u5c06\u4fe1\u606f\u76f4\u63a5\u5199\u5165\u5230\u6587\u4ef6\u4e2d\u3002<\/p>\n\n\n\n
\u5982\u9700\u63d0\u53d6\u53d8\u91cf\u503c\uff0c\u9700\u5728\u53d8\u91cf\u540d\u79f0\u524d\u52a0\u5165$\u7b26\u53f7\u505a\u63d0\u53d6\uff0c\u53d8\u91cf\u540d\u79f0\u4e00\u822c\u5747\u4e3a\u5927\u5199\u5f62\u5f0f\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>echo [\u53c2\u6570] \u5b57\u7b26\u4e32\/\u53d8\u91cf<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u8f93\u51fa\u6307\u5b9a\u5b57\u7b26\u4e32\u5230\u7ec8\u7aef\u8bbe\u5907\u754c\u9762\uff08\u9ed8\u8ba4\u4e3a\u7535\u8111\u5c4f\u5e55\uff09\uff1a<\/p>\n\n\n\n \u8f93\u51fa\u67d0\u4e2a\u53d8\u91cf\u503c\u5185\u5bb9\uff1a<\/p>\n\n\n\n \u642d\u914d\u8f6c\u4e49\u7b26\u4e00\u8d77\u4f7f\u7528\uff0c\u8f93\u51fa\u7eaf\u5b57\u7b26\u4e32\u5185\u5bb9\uff1a<\/p>\n\n\n\n \u642d\u914d\u8f93\u51fa\u91cd\u5b9a\u5411\u7b26\u4e00\u8d77\u4f7f\u7528\uff0c\u5c06\u5b57\u7b26\u4e32\u5185\u5bb9\u76f4\u63a5\u5199\u5165\u6587\u4ef6\u4e2d\uff1a<\/p>\n\n\n\n \u642d\u914d\u53cd\u5f15\u53f7\u6267\u884c\u547d\u4ee4\uff0c\u5e76\u5c06\u6267\u884c\u7ed3\u679c\u8f93\u51fa\uff1a<\/p>\n\n\n\n \u8f93\u51fa\u5e26\u6709\u6362\u884c\u7b26\u7684\u5185\u5bb9\uff1a<\/p>\n\n\n\n \u6307\u5b9a\u5220\u9664\u5b57\u7b26\u4e32\u4e2d\u67d0\u4e9b\u5b57\u7b26\uff0c\u968f\u540e\u5c06\u5185\u5bb9\u8f93\u51fa\uff1a<\/p>\n\n\n\n echo\u662f\u7528\u4e8e\u5728\u7ec8\u7aef\u8bbe\u5907\u4e0a\u8f93\u51fa\u6307\u5b9a\u5b57\u7b26\u4e32\u6216\u53d8\u91cf\u63d0\u53d6\u540e\u503c\u7684\u547d\u4ee4\uff0c\u80fd\u591f\u7ed9\u7528\u6237\u4e00\u4e9b\u7b80\u5355\u7684\u63d0\u9192\u4fe1\u606f\uff0c\u4e5f\u53ef\u4ee5\u5c06\u8f93\u51fa\u7684\u6307\u5b9a […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/123"}],"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=123"}],"version-history":[{"count":21,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":9138,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/123\/revisions\/9138"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-n<\/td> \u4e0d\u8f93\u51fa\u7ed3\u5c3e\u7684\u6362\u884c\u7b26<\/td><\/tr> -e “\\a”<\/td> \u53d1\u51fa\u8b66\u544a\u97f3<\/td><\/tr> -e “\\b”<\/td> \u5220\u9664\u524d\u9762\u7684\u4e00\u4e2a\u5b57\u7b26<\/td><\/tr> -e “\\c”<\/td> \u7ed3\u5c3e\u4e0d\u52a0\u6362\u884c\u7b26<\/td><\/tr> -e “\\f”<\/td> \u6362\u884c\uff0c\u5149\u6807\u6254\u505c\u7559\u5728\u539f\u6765\u7684\u5750\u6807\u4f4d\u7f6e<\/td><\/tr> -e “\\n”<\/td> \u6362\u884c\uff0c\u5149\u6807\u79fb\u81f3\u884c\u9996<\/td><\/tr> -e “\\r”<\/td> \u5149\u6807\u79fb\u81f3\u884c\u9996\uff0c\u4f46\u4e0d\u6362\u884c<\/td><\/tr> -E<\/td> \u7981\u6b62\u53cd\u659c\u6760\u8f6c\u79fb\uff0c\u4e0e-e\u53c2\u6570\u529f\u80fd\u76f8\u53cd<\/td><\/tr> —version<\/td> \u67e5\u770b\u7248\u672c\u4fe1\u606f<\/td><\/tr> --help <\/td> \u67e5\u770b\u5e2e\u52a9\u4fe1\u606f <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# echo LinuxCool<\/strong>\nLinuxCool\n<\/pre>\n\n\n\n
[root@linuxcool ~]# echo $PATH<\/strong>\n\/usr\/local\/bin:\/usr\/local\/sbin:\/usr\/bin:\/usr\/sbin:\/root\/bin<\/pre>\n\n\n\n
[root@linuxcool ~]# echo \\$PATH<\/strong>\n$PATH\n<\/pre>\n\n\n\n
[root@linuxcool ~]# echo \"Hello World\" > Document<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# echo `uptime`<\/strong>\n16:16:12 up 52 min, 1 user, load average: 0.00, 0.00, 0.00<\/pre>\n\n\n\n
[root@linuxcool ~]# echo -e \"First\\nSecond\\nThird\"<\/strong>\nFirst\nSecond\nThird\n<\/pre>\n\n\n\n
[root@linuxcool ~]# echo -e \"123\\b456\" <\/strong>\n12456\n<\/pre>\n","protected":false},"excerpt":{"rendered":"