首页 > 系统服务 > 详细

the linux command line学习笔记之三

时间:2015-03-06 06:23:29      阅读:379      评论:0      收藏:0      [点我收藏+]

linux键盘操作技巧

光标移动:

Ctrl-a    Move cursor to the beginning of the line.
Ctrl-e    Move cursor to the end of the line.
Ctrl-f     Move cursor forward one character; same as the right arrow key.
Ctrl-b    Move cursor backward one character; same as the left arrow key.
Alt-f     Move cursor forward one word.
Alt-b    Move cursor backward one word.
Ctrl-l    Clear the screen and move the cursor to the top left corner. The
            clear command does the same thing.

修改命令行文本:

Ctrl-d    Delete the character at the cursor location
Ctrl-t     Transpose (exchange) the character at the cursor location with the
             one preceding it.
Alt-t      Transpose the word at the cursor location with the one preceding it.
Alt-l      Convert the characters from the cursor location to the end of the
             word to lowercase.
Alt-u     Convert the characters from the cursor location to the end of the
             word to uppercase.

命令行中剪切与复制:

Ctrl-k     Kill text from the cursor location to the end of line.
Ctrl-u     Kill text from the cursor location to the beginning of the line.
Alt-d      Kill text from the cursor location to the end of the current word.
Alt-Backspace
            Kill text from the cursor location to the beginning of the current
            word. If the cursor is at the beginning of a word, kill the previous
            word.
Ctrl-y     Yank(复制) text from the kill-ring and insert it at the cursor location.


命令行history:

!!      重复上一条命令,相当于副键盘的向上键;
!number       执行history中第number条的命令行;
!string           执行history中以string开始的命令行;
!?string         执行上一条history中包含string的命令行;

the linux command line学习笔记之三

原文:http://kissofsun.blog.51cto.com/9686609/1617751

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!