Best of BashDecember 2024

  1. 1
    Article
    Avatar of communityCommunity Picks·1y

    Optimizing Your Linux Shell Experience

    Optimize your Linux shell experience by using Huffman encoding principles. By measuring the frequency of your most-used commands, you can create shorter aliases to save time and reduce typos. Examples include aliases for common git commands. This method is applicable to both zsh and bash users.

  2. 2
    Article
    Avatar of hnHacker News·1y

    The Biggest Shell Programs in the World

    This post lists some of the largest and most substantial shell programs, focusing on hand-written scripts that use data structures and algorithms, and those exceeding 5,000 lines of code. Examples include ble.sh, a sophisticated Bash Line Editor with 61K lines of code; testssl.sh, a single-file script with 21K lines; Simplenetes, Kubernetes in 17K lines of shell; powerlevel10k, a Zsh theme with 12K lines of code; and many others. These scripts demonstrate advanced programming techniques and complexity within shell scripting.

  3. 3
    Article
    Avatar of ddcDaily Dose of Code·1y

    Create a tree of directories with files !! (works for windows too (in powershell))

    Learn how to create a tree of directories and add files within them using simple commands. This guide provides step-by-step instructions and examples using `mkdir -p` for directories and `touch` for files, with the use of curly braces for structuring.