- 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.
推薦閱讀
- 課課通計算機原理
- AutoCAD繪圖實用速查通典
- 自動控制原理
- TIBCO Spotfire:A Comprehensive Primer(Second Edition)
- MCSA Windows Server 2016 Certification Guide:Exam 70-741
- CSS全程指南
- 電腦上網直通車
- Maya 2012從入門到精通
- Hands-On Cybersecurity with Blockchain
- 21天學通Visual C++
- Cloudera Administration Handbook
- 大數據時代
- Blender 3D Printing by Example
- The Python Workshop
- Windows Server 2008 R2活動目錄內幕