Command History & Substitution
Command History
To show previously executed commands use the
history
command
history
The configuration options of the history are located in the
.bashrc
file
Command Substitution
Redirecting doesn't always work.
With command substitution a command can be replaced with its output before the entire command is executed by the shell.
Backticks `` or $() are used:
Last updated
Was this helpful?