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.
Some other articles
M401 - Seeing how others do it Seventh stay away this year - and it's still only February! A long and disappointing evening Taking my life in my hands in Swansea Are administration / review charges on hotel guests acceptable? Making a personal gain from a more expensive business hotel stay It always happens to me when I'm in Borehamwood! Setting and publishing your hours to suit your customer base What might you find at a tiny bed and breakfast? More things to make sure that we do NOT do ... A reminder of why we opened Well House Manor for our customers Pushing down the advertised price, pushing up the total price charged. The highs and lows of customer service - Cheltenham Being an amateur hotel inspector helps me run a professional hotel Comparing four VERY different places to stay National TV - Melksham - 9th January 2013, Pre-alert. The Xxxxx Guest House in Xxxxxxxxxxx - my stay reviewed Should hotel staff sit on the toilet in the customer bedrooms? Some traps it's so easy to fall into in designing your web site Eyes Wide Open Well House Manor hotel, Melksham - recommended to you by our customers Honesty and a friendly welcome goes a long way Longhope Hotel Feeding the Grockles Twenty Questions Monday night, Tuesday night Not your cup of tea? Sanity checking the price, and selling up to increase income Floor to ceiling A new place in pictures Call in the professionals! Hire Car, from Atlanta Airport Launch of Melksham Food and Drink Festival Quietly putting prices up Lindors Hotel, near St. Briavels, Wye Valley The Composting Cone Challenge Comparing hotels - as a guest and from the proprietors view New bathing idea for hotels from Hotelympia Just one thing let the service down - but that is my memory The wrong way to put up prices From Sunday to Monday, from Melksham to the Balkans The little gestures that can really count Away or home - which do I prefer? Maidenhead Coffee Challenge Crystal Ball - How long do I need to be online? Match the Bedroom to the Hotel Wireless Internet Access at hotels - an update and some pitfalls Kasteel Elsloo - Michelin rated hotel. Plastic or China This article Arrival and Departure experiences - another hotel The Psyche is all wrong. The Wheatsheaf 2, The Bell 0 Well House Manor and Beechfield House, Hotels, Melksham CSL, KISS and RTFM New Tape Librarian Room for Octopuses Extremes costs of getting on line The on line booking experience If its Sunday, it must be the Norland Crazy Day-sies Differing tastes A167 - Shell Programming (bash) shell - bash. Writing conditional tests and statements - the options available Extending your bash shell with aliases, functions and extra commands Bash ... some new scripts to - handling user input Starting MySQL. ERROR! The server quit without updating PID file - how we fixed it. Commenting out an echo killed my bash backup script The Kernel, Shells and Daemons. Greek Gods in computing Ruby, Perl, Linux, MySQL - some training notes Selecting file names in a shell - one word or another Lexical v Arithemetic testing, Bash and Perl Perl and Shell coding standards / costs of an IT project This article No news is good news with Unix and Linux Cottage industry or production line data handling methods Shell Script for CGI on the web Almost like old times A101 - Linux -An Introduction For Users Packing a tar, jar or war file - best practise The Kernel, Shells and Daemons. Greek Gods in computing Displaying a directory or file system tree - Linux Oops - I typed ci not vi, and have lost my file ... Recording (a macro) in vi Linux - useful tips including history and file name completion Making Linux Politically correct Accidentally typed ci rather than vi? What does x on a linux directory mean? How much space does my directory take - Linux Always use su with minus. And where do programs come from? Running straight from the jar, but not from a tar Ruby, Perl, Linux, MySQL - some training notes sstrwxrwxrwx - Unix and Linux file permissions Keeping on an even keel Some Linux and Unix tips FTP passive mode - a sometimes cure for upload hangs Yank and Push - copy and move in vi ls command - favourite options Selecting file names in a shell - one word or another Copy and paste / cut and paste and other vi techniques Wireless hotel tips - FTP and Skype connections failing awk - a powerful data extraction and manipulation tool Linux run states, shell special commands, and directory structures This article Where am I and how did I get here? ls -l report, Linux / Unix - types and permssions Copy multiple files - confusing error message from cp Moving files between Windows / DOS and Linux / Unix Cardinal numbers and magic numbers Cottage industry or production line data handling methods THE home directory or MY home directory Linux training Glasgow, Python programming course Dundee Copying files and preserving ownership More or less on the edge of the page Web Application Components Finding where the disc space has gone File permissions of Linux and Unix systems Linux commands - some basics An easy way out Aladdin, or careful what you wish. pushd and popd vi - full circle