home.social

#bashtips — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #bashtips, aggregated by home.social.

  1. Search Bash history by prefix using Alt+Up/Down. Add 2 lines to ~/.inputrc and jump straight to matching commands—no plugins, no restart.

    Full guide here: ostechnix.com/search-bash-hist

    #Bash #History #Prefix #Bashtips #Linuxtips #Linuxhowto #Linuxbasics #Linuxcommands #Linux

  2. Bash turns 38 today! Celebrate Bash's 38th birthday with 38 built-in features and essential tips. Learn keyboard shortcuts, parameter expansion, conditionals & more.

    Full guide here: ostechnix.com/38-bash-tips-she

    #Bash #Shell #Bash38 #Linux #Bashtips #Shelltips #Shellscripting #Linuxhowto #Linuxbasics #Linuxcommands

  3. TIL: Editing commands from bash history before execution

    After years of copy-pasting from `history | grep`, I just learned:

    fc 945
    → Opens command #945 in $EDITOR
    → Edit as needed
    → Auto-executes on save

    Quick alternative:
    !945:p (print command)
    ↑ (recall and edit)

    Or for lighter editor:
    fc -e - 945

    The fc approach is perfect for complex multi-line edits. The !945:p method is faster for single-parameter changes since you stay in the shell.

    #Linux #DevOps #SRE #TIL #BashTips

  4. New Episode: hpr4088 :: Today I Learnt more Bash tips

    Hosted by Some Guy On The Internet on 2024-04-03 is flagged as Clean and is released under a CC-BY-SA license.

    Tags: #BashTips, TTIL, #getopts.

    hackerpublicradio.org/eps/hpr4