Your SlideShare is downloading. ×
5 Time Saving Bash Tricks
5 Time Saving Bash Tricks
5 Time Saving Bash Tricks
5 Time Saving Bash Tricks
5 Time Saving Bash Tricks
5 Time Saving Bash Tricks
5 Time Saving Bash Tricks
5 Time Saving Bash Tricks
5 Time Saving Bash Tricks
5 Time Saving Bash Tricks
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

5 Time Saving Bash Tricks

8,350

Published on

Presented by Nikhil Mungel at DevOpsDays Bangalore 2011.

Presented by Nikhil Mungel at DevOpsDays Bangalore 2011.

Published in: Technology, Education
3 Comments
6 Likes
Statistics
Notes
No Downloads
Views
Total Views
8,350
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
0
Comments
3
Likes
6
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. 5 Time Saving Bash Tricks
    Nikhil Mungel @hyfather
  • 2. Fun with Control and Meta
  • 3. Meta-Dot and friends
    scp ~/source/tree/file.cnikhilm@server.tw.com:.
    M-.
    nikhilm@server.tw.com:.
    Yank the last argument to previous command.
    M-C-y
    ~/source/tree/file.c
    Yank the first argument to previous command.
  • 4. Killing and Yanking
    C-k
    Kill text till end-of-line.
    C-y
    Yanks it back!
    M-y
    Cycle through the kill-ring.
  • 5. Bang through the History!
    !!
    Substitute previous command.
    $ sudo !!
  • 6. SSH multiplexing
    http://bit.ly/bashtips
    ~/.ssh/config
    Host *
    ControlMaster auto
    ControlPath /tmp/%r0%h:%p
  • 7. pushdand popd
    A stack of directories!
    $ pushd .
    $ popd
  • 8. Multi-Session History
    http://bit.ly/bashtips
    ~/.bashrc
    $ shopt –s histappend
  • 9. tail -f httpd.log &
    http://bit.ly/bashtips
    Share STDOUTbetween the REPL and the tail.
    Even the shell itself is a REPL (!)
    No switching tabs.
  • 10. Thanks!
    http://bit.ly/bashtips
    Nikhil Mungel
    @hyfather

×