Clug 2009 05 Ten Tips For Bash

768 views
738 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
768
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Clug 2009 05 Ten Tips For Bash

  1. 1. Paul's ten tips for Bash
  2. 2. Paul's ten tips for Bash <ul><li>Moving around a line Beginning of line - ^A End of line - ^E Back word - esc B Forward word - esc F Clear screen - ^L </li></ul>
  3. 3. Paul's ten tips for Bash <ul><li>Moving around a line </li></ul><ul><li>Editing a line Delete previous word - esc bksp Delete next word - esc D Delete to end of line - ^K Delete to start of line - ^U Paste the previous delete - ^Y Swap two characters - ^T </li></ul>
  4. 4. Paul's ten tips for Bash <ul><li>Moving around a line </li></ul><ul><li>Editing a line </li></ul><ul><li>Tab completion first word - command other words - filename or directory </li></ul>
  5. 5. Paul's ten tips for Bash <ul><li>Moving around a line </li></ul><ul><li>Editing a line </li></ul><ul><li>Tab completion </li></ul><ul><li>Tab completion EVERYWHERE! yum install bash-completion first word - command other words - command dependent arguments </li></ul>
  6. 6. Paul's ten tips for Bash <ul><li>Moving around a line </li></ul><ul><li>Editing a line </li></ul><ul><li>Tab completion </li></ul><ul><li>Tab completion EVERYWHERE! </li></ul><ul><li>Saving commands for later comment this line out - esc # </li></ul>
  7. 7. Paul's ten tips for Bash <ul><li>Moving around a line </li></ul><ul><li>Editing a line </li></ul><ul><li>Tab completion </li></ul><ul><li>Tab completion EVERYWHERE! </li></ul><ul><li>Saving commands for later </li></ul><ul><li>Getting commands from earlier search back through history - ^R text </li></ul>
  8. 8. Paul's ten tips for Bash <ul><li>Moving around a line </li></ul><ul><li>Editing a line </li></ul><ul><li>Tab completion </li></ul><ul><li>Tab completion EVERYWHERE! </li></ul><ul><li>Saving commands for later </li></ul><ul><li>Getting commands from earlier </li></ul><ul><li>Argument iteration x{a,b,c}y - xay xby xcy </li></ul>
  9. 9. Paul's ten tips for Bash <ul><li>Saving commands for later </li></ul><ul><li>Getting commands from earlier </li></ul><ul><li>Argument iteration </li></ul><ul><li>Previous command arguments last argument - esc . or Alt-. Nth argument - !:N !* = last entire last command - !! </li></ul>
  10. 10. Paul's ten tips for Bash <ul><li>Saving commands for later </li></ul><ul><li>Getting commands from earlier </li></ul><ul><li>Argument iteration </li></ul><ul><li>Previous command arguments </li></ul><ul><li>Substitute into previous command replace 'foo' with 'bar' - ^foo^bar^ </li></ul>
  11. 11. Paul's ten tips for Bash <ul><li>Saving commands for later </li></ul><ul><li>Getting commands from earlier </li></ul><ul><li>Argument iteration </li></ul><ul><li>Previous command arguments </li></ul><ul><li>Substitute into previous command </li></ul><ul><li>rename rename .jpg.mp3 .mp3 * </li></ul>

×