Answers for "how to run a command from history linux"

1

how to run a command from history linux

##To run a specific command from your history by its number, use the following command:
!#

##Example to run command number 12 from history list enter below command
## Replace the number with ur required command from bash history.
!12

## To just display what exact command would be executed without actually executing it
!12:p
Posted by: Guest on September-20-2020
0

run command from history ubuntu

Use Key combination Ctrl - r, you will be able to use keyword to search bash history.
OR 
In bash, just !636 will be ok.
Posted by: Guest on January-11-2021

Code answers related to "how to run a command from history linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language