Language Selection

English French German Italian Portuguese Spanish

Repeat last shell command that started with a particular word

Filed under
HowTos

Bash / CSH shell offers command history feature. Most of you may be aware and using of UP / DOWN arrow keys to recall previous commands. History expansions introduce words from the history list into the input stream, making it easy to repeat commands, insert the arguments to a previous ommand into the current input line, or fix errors in previous commands quickly.

To repeat last command that started with bar word type i.e. refer to the most recent command starting with string bar):

More Here.




More in Tux Machines

Ubuntu-Based BackBox Linux 4.6 Launches with Updated Hacking Tools, Kernel 4.2

Raffaele Forte, the maintainer of the Ubuntu-based BackBox Linux operating system designed for penetration testing and forensic analysis operations, announced the release of BlackBox Linux 4.6. Read more Also: BQ Aquaris M10 Ubuntu Edition review

Red Hat News

Kernel Space Graphics

GNOME Desktop/GTK