Clug 2009 05 Ten Tips For Bash - Presentation Transcript
Paul's ten tips for Bash
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
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
Paul's ten tips for Bash
Moving around a line
Editing a line
Tab completion first word - command other words - filename or directory
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
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 #
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
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
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 - !!
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^
0 comments
Post a comment