# history | more 1 service network restart 2 exit 3 id 4 cat /etc/redhat-release # !4 cat /etc/redhat-release Fedora release 9 (Sulphur)
Question
Recall a specific command from history
Answer
?
Question
Recall a specific command from history
Answer
# history | more 1 service network restart 2 exit 3 id 4 cat /etc/redhat-release # !4 cat /etc/redhat-release Fedora release 9 (Sulphur)
If you want to change selection, open document below and click on "Move attachment"
15 Examples To Master Linux Command Line History display the previous command, press enter to execute it 4. Execute a specific command from history In the following example, If you want to repeat the command #4, you can do !4 as shown below. <span># history | more 1 service network restart 2 exit 3 id 4 cat /etc/redhat-release # !4 cat /etc/redhat-release Fedora release 9 (Sulphur) 5. Execute previous command that starts with a specific word Type ! followed by the starting few letters of the command that you would like to re-execute. In the following example, typi
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.