Wednesday, April 22, 2015

Linux command tricks

Some useful tricks and tips regarding linux commands.

1. Use !! for the last entered command
If you want to repeat your last command, you can use !!. That will be replaced by the last entered command. You can also use !! within other words around the command, in that case the previous command will be inserted in place of "!!", and the rest will be kept.
a.gavrin@wp [14:44:27] ~> vi /etc/passwd

a.gavrin@wp [14:44:43] ~> !!

No comments:

Post a Comment