{"id":3701,"date":"2013-11-11T15:49:34","date_gmt":"2013-11-11T07:49:34","guid":{"rendered":"https:\/\/www.deepin.org\/?p=3701"},"modified":"2013-11-11T15:49:34","modified_gmt":"2013-11-11T07:49:34","slug":"bash-shortcuts-quick-reference-bilingual","status":"publish","type":"post","link":"https:\/\/www.deepin.org.cn\/zh\/bash-shortcuts-quick-reference-bilingual\/","title":{"rendered":"[\u5c0f\u77e5\u8bc6] Bash\u5feb\u6377\u952e\u901f\u67e5 (\u53cc\u8bed\u5bf9\u7167)"},"content":{"rendered":"<table border=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td colspan=\"2\">\n<p align=\"center\"><strong>Bash\u5feb\u6377\u952e\u901f\u67e5 (<\/strong><strong>\u53cc\u8bed\u5bf9\u7167<\/strong><strong>)<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"90\">\n<p align=\"left\">Ctrl-a<\/p>\n<\/td>\n<td>\n<p align=\"left\">Move to the start of the line.<\/p>\n<p align=\"left\">\u79fb\u52a8\u5230\u884c\u9996<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Ctrl-e<\/p>\n<\/td>\n<td>\n<p align=\"left\">Move to the end of the line.<\/p>\n<p align=\"left\">\u79fb\u52a8\u5230\u884c\u5c3e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Ctrl-b<\/p>\n<\/td>\n<td>\n<p align=\"left\">Move back one character.<\/p>\n<p align=\"left\">\u5411\u524d\u79fb\u52a8\u4e00\u4e2a\u5b57\u7b26<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Alt-b<\/p>\n<\/td>\n<td>\n<p align=\"left\">Move back one word.<\/p>\n<p align=\"left\">\u5411\u524d\u79fb\u52a8\u4e00\u4e2a\u5355\u8bcd<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Ctrl-f<\/p>\n<\/td>\n<td>\n<p align=\"left\">Move forward one character.<\/p>\n<p align=\"left\">\u5411\u540e\u79fb\u52a8\u4e00\u4e2a\u5b57\u7b26<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Alt-f<\/p>\n<\/td>\n<td>\n<p align=\"left\">Move forward one word.<\/p>\n<p align=\"left\">\u5411\u540e\u79fb\u52a8\u4e00\u4e2a\u5355\u8bcd<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Ctrl-] <em>x<\/em><\/p>\n<\/td>\n<td>\n<p align=\"left\">Where x is any character, moves the cursor forward to the next<br \/>\noccurrence of x.<\/p>\n<p align=\"left\">\u201cx\u201d\u4ee3\u8868\u4efb\u610f\u5b57\u7b26\uff0c\u5411\u540e\u79fb\u52a8\u5149\u6807\u81f3\u4e0b\u4e00\u6b21\u5b57\u7b26\u201cx\u201d\u51fa\u73b0\u7684\u5730\u65b9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Alt-Ctrl-] <em>x<\/em><\/p>\n<\/td>\n<td>\n<p align=\"left\">Where x is any character, moves the cursor backwards to the<br \/>\nprevious occurrence of x.<\/p>\n<p align=\"left\">\u201cx\u201d\u4ee3\u8868\u4efb\u610f\u5b57\u7b26\uff0c\u5411\u540e\u79fb\u52a8\u5149\u6807\u81f3\u4e0a\u4e00\u6b21\u5b57\u7b26\u201cx\u201d\u51fa\u73b0\u7684\u5730\u65b9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Ctrl-u<\/p>\n<\/td>\n<td>\n<p align=\"left\">Delete from the cursor to the beginning of the line.<\/p>\n<p align=\"left\">\u5220\u9664\u81ea\u5149\u6807\u524d\u4e00\u5b57\u7b26\u81f3\u884c\u9996\u7684\u5b57\u7b26<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Ctrl-k<\/p>\n<\/td>\n<td>\n<p align=\"left\">Delete from the cursor to the end of the line.<\/p>\n<p align=\"left\">\u5220\u9664\u81ea\u5149\u6807\u6240\u5728\u5b57\u7b26\u81f3\u884c\u5c3e\u7684\u5b57\u7b26<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Ctrl-w<\/p>\n<\/td>\n<td>\n<p align=\"left\">Delete from the cursor to the start of the word.<\/p>\n<p align=\"left\">\u5220\u9664\u81ea\u5149\u6807\u524d\u4e00\u5b57\u7b26\u81f3\u8be5\u5355\u8bcd\u5f00\u5934\u7684\u5b57\u7b26<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Ctrl-y<\/p>\n<\/td>\n<td>\n<p align=\"left\">Pastes text from the clipboard.<\/p>\n<p align=\"left\">\u4ece\u526a\u5207\u7248\u7c98\u8d34\u6587\u672c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Ctrl-l<\/p>\n<\/td>\n<td>\n<p align=\"left\">Clear the screen leaving the current line at the top of the screen.<\/p>\n<p align=\"left\">\u6e05\u5c4f\uff0c\u4f7f\u5f53\u524d\u884c\u4f4d\u4e8e\u5c4f\u5e55\u6700\u9876\u7aef<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Ctrl-x Ctrl-u<\/p>\n<\/td>\n<td>\n<p align=\"left\">Undo the last changes. Ctrl-_ does the same<\/p>\n<p align=\"left\">\u64a4\u6d88\u524d\u4e00\u6b21\u53d8\u66f4\uff0cCtrl+_\u4e0e\u4e4b\u76f8\u540c\u3002<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Alt-r<\/p>\n<\/td>\n<td>\n<p align=\"left\">Undo all changes to the line.<\/p>\n<p align=\"left\">\u64a4\u6d88\u6b64\u524d\u5bf9\u8be5\u884c\u7684\u6240\u6709\u53d8\u66f4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Alt-Ctrl-e<\/p>\n<\/td>\n<td>\n<p align=\"left\">Expand command line.<\/p>\n<p align=\"left\">\u5c55\u5f00\u67d0\u4e00\u547d\u4ee4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Ctrl-r<\/p>\n<\/td>\n<td>\n<p align=\"left\">Incremental reverse search of history.<\/p>\n<p align=\"left\">\u589e\u91cf\u53cd\u5411\u641c\u7d22\u5386\u53f2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Alt-p<\/p>\n<\/td>\n<td>\n<p align=\"left\">Non-incremental reverse search of history.<\/p>\n<p align=\"left\">\u975e\u589e\u91cf\u53cd\u5411\u641c\u7d22\u5386\u53f2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">!!<\/p>\n<\/td>\n<td>\n<p align=\"left\">Execute last command in history<\/p>\n<p align=\"left\">\u6267\u884c\u4e0a\u4e00\u6761\u5386\u53f2\u547d\u4ee4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">!abc<\/p>\n<\/td>\n<td>\n<p align=\"left\">Execute last command in history beginning with abc<\/p>\n<p align=\"left\">\u6267\u884c\u6700\u8fd1\u4e00\u6761\u4ee5abc\u5f00\u5934\u7684\u5386\u53f2\u547d\u4ee4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">!abc:p<\/p>\n<\/td>\n<td>\n<p align=\"left\">Print last command in history beginning with abc<\/p>\n<p align=\"left\">\u663e\u793a\u6700\u8fd1\u4e00\u6761\u4ee5abc\u5f00\u5934\u7684\u5386\u53f2\u547d\u4ee4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">!<em>n<\/em><\/p>\n<\/td>\n<td>\n<p align=\"left\">Execute <em>n<\/em>th command in history<\/p>\n<p align=\"left\">\u6267\u884c\u7b2cn\u6761\u5386\u53f2\u547d\u4ee4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">!$<\/p>\n<\/td>\n<td>\n<p align=\"left\">Last argument of last command<\/p>\n<p align=\"left\">\u524d\u4e00\u6b21\u547d\u4ee4\u7684\u53c2\u6570<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">!^<\/p>\n<\/td>\n<td>\n<p align=\"left\">First argument of last command<\/p>\n<p align=\"left\">\u524d\u4e00\u6b21\u547d\u4ee4\u7684\u7b2c\u4e00\u4e2a\u53c2\u6570<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">^abc^xyz<\/p>\n<\/td>\n<td>\n<p align=\"left\">Replace first occurrence of abc with xyz in last command and execute it<\/p>\n<p align=\"left\">\u66ff\u6362\u524d\u4e00\u6b21\u547d\u4ee4\u4e2d\u5b57\u7b26\u201cabc\u201d\u51fa\u73b0\u7684\u7b2c\u4e00\u5904\u4e3a\u201cxyz\u201d\u5e76\u6267\u884c<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>\u53c2\u8003\u94fe\u63a5\uff1a <a href=\"http:\/\/www.ice2o.com\/bash_quick_ref.html\">Bash Shortcuts Quick Reference <\/a><br \/>","protected":false},"excerpt":{"rendered":"<p>Bash\u5feb\u6377\u952e\u901f\u67e5 (\u53cc\u8bed\u5bf9\u7167) Ctrl-a Move to the start of the line. \u79fb\u52a8\u5230\u884c\u9996 Ctrl-e Move to the end of the line. \u79fb\u52a8\u5230\u884c\u5c3e Ctrl-b Move back one character. \u5411\u524d\u79fb\u52a8\u4e00\u4e2a\u5b57\u7b26 Alt-b Move back one word. \u5411\u524d\u79fb\u52a8\u4e00\u4e2a\u5355\u8bcd Ctrl-f Move forward o ...<a href=https:\/\/www.deepin.org.cn\/zh\/bash-shortcuts-quick-reference-bilingual\/>\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[93],"tags":[],"_links":{"self":[{"href":"https:\/\/www.deepin.org.cn\/zh\/wp-json\/wp\/v2\/posts\/3701"}],"collection":[{"href":"https:\/\/www.deepin.org.cn\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.deepin.org.cn\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.deepin.org.cn\/zh\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.deepin.org.cn\/zh\/wp-json\/wp\/v2\/comments?post=3701"}],"version-history":[{"count":0,"href":"https:\/\/www.deepin.org.cn\/zh\/wp-json\/wp\/v2\/posts\/3701\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.deepin.org.cn\/zh\/wp-json\/wp\/v2\/media?parent=3701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.deepin.org.cn\/zh\/wp-json\/wp\/v2\/categories?post=3701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.deepin.org.cn\/zh\/wp-json\/wp\/v2\/tags?post=3701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}