- Ubuntu 20.04 Essentials
- Neil Smyth
- 142字
- 2021-06-11 17:39:42
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.
推薦閱讀
- Word 2003、Excel 2003、PowerPoint 2003上機指導與練習
- Mastering Spark for Data Science
- WOW!Illustrator CS6完全自學寶典
- 最后一個人類
- 系統安裝與重裝
- 信息物理系統(CPS)測試與評價技術
- Red Hat Linux 9實務自學手冊
- 激光選區熔化3D打印技術
- Building a BeagleBone Black Super Cluster
- Spatial Analytics with ArcGIS
- Visual Studio 2010 (C#) Windows數據庫項目開發
- Web璀璨:Silverlight應用技術完全指南
- Mastering OpenStack(Second Edition)
- 數字多媒體技術基礎
- 基于Proteus的PIC單片機C語言程序設計與仿真