|
|
|
|
|
by arckiearc
5393 days ago
|
|
Great tips. !! is a nice timesaver when you've forgotten to prepend sudo to a command: $ /etc/init.d/rabbitmq-server restart
Failed, need root access
$ sudo !!
Success
cd - is also quite cool, it takes you to the previous working directory. $ pwd
/some/really/long/path/goes/here
$ cd /var/log/app
Work in this directory for a while, then go to previous dir
$ cd -
$ pwd
/some/really/long/path/goes/here
|
|