Main Content

Work and play at Well House Manor - Football and Shell Shortcuts

Archive - Originally posted on "The Horse's Mouth" - 2007-08-02 01:39:17 - Graham Ellis

We're running a Linux and LAMP course this week - great group and I'm going to be sorry when it's the end of the course.


Yesterday we had a cold buffet lunch for a change, and made the best of the lovely weather and spacious garden to relax for a while - we do a long day, and so a good break at lunch is so helpful.


After lunch we looked at shell short cuts - for bash or csh - and as I've not got them all listed in one place I thought I would put them up here


Examples of C and bash shell shortcuts

!47 - Rerun command number 47
!! - Rerun the last command
!c - Rerun the last command that started "c"
!man - Rerun the last command that started "man"
!$ - last parameter previous line
!-3 - Rerun the third command ago
!?etc - Rerun the last command that included "etc"
!* - all parameters from previous command
!grep:s/ice/water/ - Rerun the last grep, changing ice to water

and if you want to see the history tree, it's the history command.