Linux Bash History Speed Tips
Bash history speed tips
Type history at the Bash command prompt, and you'll get a list of your previous commands. You can navigate through these with the up and down arrows, but there are other ways of interacting with them that I've been investigating this week. One straightforward option is to use the number at the start of the line to refer to the command. So,
will execute the line numbered 15268. !! executes the last command, and !-2 will execute the last-but-two command.
You can edit previous commands quickly using...
Read the rest of this Bash tip at Serverwatch.com
- 1Linux Top 3: Alpine Linux 3.4, deepin 15.2 and Linux Lite 3.0
- 2Linux 4.7 Set to Boost Live Patching, Security and Power Management
- 3Linux 4.6 Charred Weasel adds USB 3.1 Support
- 4Linux Top 3: OpenIndiana 2016.04, Ubuntu 16.04 and Debian's New Leader
- 5Linux Top 3: KaOS 2016.04, TurnKey 14.1 and pfSense 2.3