bash 的history 功能

来源:互联网 发布:gta5女性角色捏脸数据 编辑:程序博客网 时间:2024/05/29 19:45

(1) The command history is also searchable in more than one way: If you type the
command history, you will see a listing of the last commands you have typed. Each of these
is numbered: If you type ! followed by the number of the command, you can run it again.

(2) If you press Ctrl+R (hold down the Control key and press R), you can search the command his-
tory by typing part of the command you are looking for. If the first command that appears is
not the one you had in mind, repeat the Ctrl+R until it appears.

(3)You can also repeat a previous command by typing ! followed by the first letter or letters of the previous command.

原创粉丝点击