2) Use !! for Executing the Last Command
This is the extension of the previous tip which is used to execute the very last command you have executed. Since it just involves two keystrokes and that too for the same key it’s amazingly fast. computer science course computer science jobs computer science binus
This will also work on the shells in which up and down arrow doesn’t work like K shell and C shell. This is extremely useful if you are stopping or starting your server or Java application for debugging ging purpose frequently.
Btw, if you are not familiar with bash shell yet, I suggest you take a look at Bash Shell Scripting: Crash Course For Beginners, which will teach you the bash shell from the command line to shell script. A very useful course for anyone who wants to become a power user in Linux.