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.
(written 2007-08-02, updated 2007-08-01)
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
M401 - Well House Manor - Seeing how others do it [17] Differing tastes - (2004-08-17)
[514] Crazy Day-sies - (2005-12-02)
[619] If its Sunday, it must be the Norland - (2006-02-23)
[693] The on line booking experience - (2006-04-21)
[699] Extremes costs of getting on line - (2006-04-25)
[714] Room for Octopuses - (2006-05-08)
[736] New Tape Librarian - (2006-05-28)
[966] CSL, KISS and RTFM - (2006-12-05)
[1011] Well House Manor and Beechfield House, Hotels, Melksham - (2006-12-29)
[1026] The Wheatsheaf 2, The Bell 0 - (2007-01-09)
[1091] The Psyche is all wrong. - (2007-02-24)
[1205] Arrival and Departure experiences - another hotel - (2007-05-26)
[1301] Plastic or China - (2007-08-12)
[1333] Kasteel Elsloo - Michelin rated hotel. - (2007-09-05)
[1347] Wireless Internet Access at hotels - an update and some pitfalls - (2007-09-12)
[1354] Match the Bedroom to the Hotel - (2007-09-17)
[1356] Crystal Ball - How long do I need to be online? - (2007-09-18)
[1374] Maidenhead Coffee Challenge - (2007-10-02)
[1406] Away or home - which do I prefer? - (2007-10-25)
[1413] The little gestures that can really count - (2007-10-27)
[1454] From Sunday to Monday, from Melksham to the Balkans - (2007-12-03)
[1458] The wrong way to put up prices - (2007-12-05)
[1525] Just one thing let the service down - but that is my memory - (2008-01-31)
[1547] New bathing idea for hotels from Hotelympia - (2008-02-20)
[1597] Comparing hotels - as a guest and from the proprietors view - (2008-04-01)
[1672] The Composting Cone Challenge - (2008-06-10)
[1758] Lindors Hotel, near St. Briavels, Wye Valley - (2008-08-18)
[1915] Quietly putting prices up - (2008-12-02)
[2007] Launch of Melksham Food and Drink Festival - (2009-01-24)
[2105] Hire Car, from Atlanta Airport - (2009-03-27)
[2127] Call in the professionals! - (2009-04-12)
[2308] A new place in pictures - (2009-07-28)
[2311] Floor to ceiling - (2009-07-30)
[2413] Sanity checking the price, and selling up to increase income - (2009-09-21)
[2441] Not your cup of tea? - (2009-10-08)
[2502] Monday night, Tuesday night - (2009-11-13)
[2885] Twenty Questions - (2010-07-24)
[2911] Feeding the Grockles - (2010-08-09)
[3054] Longhope Hotel - (2010-11-16)
[3333] Honesty and a friendly welcome goes a long way - (2011-06-25)
[3368] Well House Manor hotel, Melksham - recommended to you by our customers - (2011-07-23)
[3754] Eyes Wide Open - (2012-06-06)
[3776] Some traps it's so easy to fall into in designing your web site - (2012-06-23)
[3794] Should hotel staff sit on the toilet in the customer bedrooms? - (2012-07-02)
[3900] The Xxxxx Guest House in Xxxxxxxxxxx - my stay reviewed - (2012-10-20)
[3963] National TV - Melksham - 9th January 2013, Pre-alert. - (2012-12-27)
[3970] Comparing four VERY different places to stay - (2013-01-11)
[3975] Being an amateur hotel inspector helps me run a professional hotel - (2013-01-14)
[4058] The highs and lows of customer service - Cheltenham - (2013-04-03)
[4081] Pushing down the advertised price, pushing up the total price charged. - (2013-05-08)
[4091] A reminder of why we opened Well House Manor for our customers - (2013-05-17)
[4093] More things to make sure that we do NOT do ... - (2013-05-18)
[4109] What might you find at a tiny bed and breakfast? - (2013-06-03)
[4177] Setting and publishing your hours to suit your customer base - (2013-09-18)
[4245] It always happens to me when I'm in Borehamwood! - (2014-03-06)
[4255] Making a personal gain from a more expensive business hotel stay - (2014-04-02)
[4321] Are administration / review charges on hotel guests acceptable? - (2014-11-20)
[4348] Taking my life in my hands in Swansea - (2014-12-11)
[4373] A long and disappointing evening - (2014-12-30)
[4443] Seventh stay away this year - and it's still only February! - (2015-02-25)
A167 - Web Application Deployment - Shell Programming (bash) [63] Almost like old times - (2004-09-26)
[64] Shell Script for CGI on the web - (2004-09-26)
[749] Cottage industry or production line data handling methods - (2006-06-07)
[827] No news is good news with Unix and Linux - (2006-08-10)
[1345] Perl and Shell coding standards / costs of an IT project - (2007-09-11)
[1468] Lexical v Arithemetic testing, Bash and Perl - (2007-12-11)
[1527] Selecting file names in a shell - one word or another - (2008-02-02)
[1904] Ruby, Perl, Linux, MySQL - some training notes - (2008-11-23)
[3791] The Kernel, Shells and Daemons. Greek Gods in computing - (2012-07-01)
[4400] Commenting out an echo killed my bash backup script - (2015-01-19)
[4487] Starting MySQL. ERROR! The server quit without updating PID file - how we fixed it. - (2015-05-06)
[4584] Bash ... some new scripts to - handling user input - (2015-11-27)
[4586] Extending your bash shell with aliases, functions and extra commands - (2015-11-28)
[4587] shell - bash. Writing conditional tests and statements - the options available - (2015-11-28)
A101 - Web Application Deployment - Linux -An Introduction For Users [73] vi - full circle - (2004-10-04)
[74] pushd and popd - (2004-10-05)
[152] Aladdin, or careful what you wish. - (2004-12-15)
[249] An easy way out - (2005-03-17)
[430] Linux commands - some basics - (2005-08-31)
[431] File permissions of Linux and Unix systems - (2005-08-31)
[593] Finding where the disc space has gone - (2006-02-06)
[659] Web Application Components - (2006-03-28)
[679] More or less on the edge of the page - (2006-04-11)
[703] Copying files and preserving ownership - (2006-04-28)
[710] Linux training Glasgow, Python programming course Dundee - (2006-05-05)
[711] THE home directory or MY home directory - (2006-05-06)
[984] Cardinal numbers and magic numbers - (2006-12-14)
[1012] Moving files between Windows / DOS and Linux / Unix - (2006-12-30)
[1013] Copy multiple files - confusing error message from cp - (2006-12-30)
[1068] ls -l report, Linux / Unix - types and permssions - (2007-02-06)
[1259] Where am I and how did I get here? - (2007-07-05)
[1288] Linux run states, shell special commands, and directory structures - (2007-08-03)
[1366] awk - a powerful data extraction and manipulation tool - (2007-09-25)
[1408] Wireless hotel tips - FTP and Skype connections failing - (2007-10-26)
[1438] Copy and paste / cut and paste and other vi techniques - (2007-11-20)
[1651] ls command - favourite options - (2008-05-23)
[1764] Yank and Push - copy and move in vi - (2008-08-21)
[1803] FTP passive mode - a sometimes cure for upload hangs - (2008-09-20)
[1893] Some Linux and Unix tips - (2008-11-18)
[1897] Keeping on an even keel - (2008-11-21)
[1902] sstrwxrwxrwx - Unix and Linux file permissions - (2008-11-23)
[2201] Running straight from the jar, but not from a tar - (2009-05-26)
[2203] Always use su with minus. And where do programs come from? - (2009-05-27)
[2299] How much space does my directory take - Linux - (2009-07-20)
[2300] What does x on a linux directory mean? - (2009-07-21)
[2479] Accidentally typed ci rather than vi? - (2009-10-27)
[2494] Making Linux Politically correct - (2009-11-06)
[2636] Linux - useful tips including history and file name completion - (2010-02-15)
[2831] Recording (a macro) in vi - (2010-06-27)
[3179] Oops - I typed ci not vi, and have lost my file ... - (2011-02-21)
[3256] Displaying a directory or file system tree - Linux - (2011-04-22)
[3819] Packing a tar, jar or war file - best practise - (2012-07-26)
Some other Articles
Day trip to WeymouthBadges, Breakfasts and TriggerPure PerlWork and play at Well House Manor - Football and Shell ShortcutsA wasted evening?In the army, or in civvie street?An update on the West Wilts show ...Generating traffic for network testingStringing together Tcl scripts