Clug 2009 05 Ten Tips For Bash
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Clug 2009 05 Ten Tips For Bash

on

  • 1,426 views

 

Statistics

Views

Total Views
1,426
Views on SlideShare
1,423
Embed Views
3

Actions

Likes
0
Downloads
6
Comments
0

1 Embed 3

http://www.linkedin.com 3

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Clug 2009 05 Ten Tips For Bash Presentation Transcript

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