Best of Shell2024

  1. 1
    Article
    Avatar of lobstersLobsters·2y

    Zed on Linux is here!

    Run the provided shell script to install Zed on most Linux distributions using the command: curl https://zed.dev/install.sh | sh.

  2. 2
    Article
    Avatar of gcgitconnected·2y

    How To Make Your Boring Terminal So Much Better

    Learn how to customize your boring default terminal to boost your productivity. Discover useful terminal commands for navigation and shortcuts to enhance your terminal experience.

  3. 3
    Article
    Avatar of devtoDEV·2y

    Warp! - A new way to use your command line

    Warp is a new command line interface for Unix-like OSes that offers features like IDE-like functionality, built-in AI, collaborative terminals, terminal workflows, and customizable themes.

  4. 4
    Article
    Avatar of hnHacker News·2y

    How this shell command works?

    Fig is a tool that enhances the functionality of shell commands by providing suggested commands while you type. This can streamline your command-line experience and increase productivity. Learn how it works and how to make the most of it.

  5. 5
    Article
    Avatar of communityCommunity Picks·2y

    Starship: A Better Terminal Prompt in 2 Minutes

    Starship is a minimal, fast, and customizable shell prompt designed for developers. It comes with built-in modules that automatically display relevant information, and it is easy to configure using TOML. Starship allows users to move or hide prompt information to create a visually efficient workflow, and it supports custom modules, making it adaptable to various development needs.

  6. 6
    Article
    Avatar of itnextITNEXT·2y

    The Zsh Shell Tricks I Wish I’d Known Earlier

    Enhance your command-line productivity with Zsh! Zsh is a powerful Unix shell known for its robust features like command-line editing, spell checking, and programmable completion. This guide offers practical tips on cursor navigation, line editing, globbing, command history, parameter expansion, and custom commands. Learn to navigate directories efficiently, create and bind custom commands, and use Zsh’s advanced features to optimize your workflow. Whether you're a developer, system administrator, DevOps engineer, or tech enthusiast, mastering Zsh can significantly boost your efficiency.

  7. 7
    Article
    Avatar of communityCommunity Picks·2y

    10 simple Linux tips which save 50% of my time in the command line

    Discover 10 simple Linux tips to save time in the command line and work efficiently in UNIX. Learn how to execute previous commands quickly, repeat the last command, use history to find frequently used commands, apply regular expressions in grep and find, use aliases, and more.

  8. 8
    Article
    Avatar of communityCommunity Picks·2y

    BASH/Linux Interview Question for DevOps Engineers

    This post covers various interview questions for DevOps engineers related to BASH and Linux, including types of variables used in shell scripting, checking if a file exists, default file permissions, CRONTAB, debugging shell scripts, disk usage, shebang line, Linux process stages, metacharacters, renaming files, reading command line arguments, standard streams in Linux, differentiating between two shell variables, checking file existence, extracting part of a string variable, differences in string matching, SSH authentication, special shell variable $?, using grep to find numeric digits, listing file names only, checking if a zip file contains a directory, and when to use curly braces around shell variables.

  9. 9
    Article
    Avatar of communityCommunity Picks·2y

    What’s the Difference Between sh and Bash?

    Learn about the differences between sh and Bash, the features they offer, and which shell to use.

  10. 10
    Article
    Avatar of hnHacker News·2y

    Dune Shell

    Learn how to install the Dune Shell using Cargo and set up the environment by creating a .dune-prelude file in the $HOME directory. This file allows you to set environment variables, define functions, or run shell commands every time a new shell session starts.

  11. 11
    Article
    Avatar of communityCommunity Picks·2y

    Terminal Productivity Booster Zsh Plugins

    Learn about Zsh plugins that can boost your terminal productivity, providing a more efficient and effective development experience.

  12. 12
    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.

  13. 13
    Article
    Avatar of lobstersLobsters·2y

    In praise of Nushell

    Nushell is a non-POSIX shell implemented in Rust that handles structured data and provides a powerful, incremental way of working with pipelines in the terminal. It redefines common shell commands to output structured data and offers a range of basic types and commands for transforming data.

  14. 14
    Article
    Avatar of nickjanetakisNick Janetakis·2y

    Creating Dynamic Variables in Bash

    Learn how to create dynamic variables in Bash using indirect expansion. This technique eliminates the need for if statements and reduces duplication of code for different environments.

  15. 15
    Article
    Avatar of communityCommunity Picks·2y

    Distinctions Between Terminal, Command Line, Shell, and Prompt

    Understanding the distinctions between terminal, command line, shell, and prompt can be challenging for newcomers to Linux. The terminal is a graphical interface that runs a shell where commands are executed. The shell processes these commands, while the prompt indicates system readiness for input. The command line is a broader term for an interface where users run commands.

  16. 16
    Article
    Avatar of hnHacker News·1y

    jdx/mise: dev tools, env vars, task runner

    Mise is a versatile front-end tool for development environments, managing development tools, environment variables, and tasks similar to asdf, direnv, and make respectively. It supports installing and switching between different versions of tools like node, python, cmake, terraform, and more. It can be easily installed and integrated into various shells.

  17. 17
    Video
    Avatar of communityCommunity Picks·2y

    Set up a Mac in 2024 for Power Users and Developers

    Learn how to set up a Mac for power users and developers with basic OS settings, essential apps, and customization tips for the dock, finder, and terminal. Discover useful extensions for VS Code and how to configure them. This post provides a comprehensive guide to optimize your Mac experience.

  18. 18
    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.

  19. 19
    Article
    Avatar of nickjanetakisNick Janetakis·2y

    clear vs CTRL + L in Your Shell

    Learn about the difference between using clear and CTRL + L in the shell to clear the screen and buffer. CTRL + L clears the visible output while still allowing you to scroll up, while clear also clears the buffer. Watch the demo video to see it in action.

  20. 20
    Article
    Avatar of communityCommunity Picks·2y

    Boilerplate for creating a Shell Script

    A basic boilerplate for creating a shell script, including error handling and usage instructions. The script checks for help flags, navigates to the script's directory, and has a main function designed to perform tasks.

  21. 21
    Article
    Avatar of hnHacker News·2y

    tzador/makedown: Organise your shell scripts in executable markdown files

    makedown combines the use of Markdown and the functionality of Makefiles to organize and execute shell scripts. It supports multiple languages like zsh, bash, JavaScript, and Python. Key features include executable markdown scripting, syntax highlighting, and autocomplete support. Installation can be done via pip, and commands can be run from markdown files using 'makedown' or its shorthand 'm'.

  22. 22
    Article
    Avatar of hnHacker News·2y

    wolandark/bash-dungeon: An educational dungeon crawler in the shell

    An educational dungeon crawler game created in bash, where directories represent dungeons, aiming to teach new users shell commands in a fun and interactive manner. It's a work in progress and requires Docker to get started. Users can sign up for a free GitPod account, pull the docker image, and follow simple commands like `cd`, `ls`, and `cat` to play.

  23. 23
    Article
    Avatar of changelogChangelog·2y

    Writing a shell in Go with Qi Xiao (Go Time #336)

    Johnny and Qi Xiao discuss the complexities and methods of writing a shell using the Go programming language. They delve into various aspects of the project, offering practical advice and insights for developers interested in undertaking such a feat.

  24. 24
    Article
    Avatar of lobstersLobsters·2y

    meithecatte/bashfuck: Write any bash with only the punctuation characters

    bashfuck is a unique bash dialect allowing the use of only ASCII special characters, without letters or numbers. It comes with a bashfuck encoder for translating regular bash scripts. The tool relies on the precise wording of bash error messages in English locales and utilizes a workaround for capturing stderr. Users are encouraged to improve the existing decoding code through contributions.

  25. 25
    Video
    Avatar of christitustechChris Titus Tech·2y

    The Linux Utility v1.0

    Chris Titus introduces a new Linux Utility script with a Rust wrapper designed to simplify various Linux tasks. The utility allows users to quickly set up and customize their Linux environments. It includes scripts written in bash and integrates seamlessly across different Linux distributions like Fedora, Debian, and Arch. Chris emphasizes the importance of open-source collaboration and invites contributors to help improve the tool further.