官术网_书友最值得收藏!

9.6 Working with the Shell History

In addition to command-line editing features, the Bash shell also provides command-line history support. A list of previously executed commands may be viewed using the history command:

$ history

    1 ps

    2 ls

    3 ls –l /

    4 ls

    5 man pwd

    6 man apropos

In addition, Ctrl-p (or up arrow) and Ctrl-n (or down arrow) may be used to scroll back and forth through previously entered commands. When the desired command from the history is displayed, press the Enter key to execute it.

Another option is to enter the ‘!’ character followed by the first few characters of the command to be repeated followed by the Enter key.

主站蜘蛛池模板: 丹江口市| 青浦区| 云林县| 太和县| 崇礼县| 盐池县| 德化县| 疏勒县| 荣昌县| 祁门县| 兴化市| 平果县| 板桥市| 苏尼特右旗| 长武县| 安吉县| 龙山县| 凯里市| 孟津县| 犍为县| 兴海县| 绥芬河市| 巴南区| 德格县| 买车| 井研县| 佛冈县| 淄博市| 桦甸市| 新源县| 涞水县| 镶黄旗| 沐川县| 嵊州市| 微博| 江川县| 张家港市| 天气| 莱阳市| 大荔县| 罗江县|