About 990,000 results
Open links in new tab
  1. Special Parameters (Bash Reference Manual)

    If Bash is started with the -c option (see Invoking Bash), then $0 is set to the first argument after the string to be executed, if one is present. Otherwise, it is set to the filename used to invoke Bash, as …

  2. Bash Special Variables ($0, $?, $#, $@, $$, $*, $-) - TecAdmin

    May 2, 2025 · In this article, we’ll provide an in-depth guide to all bash special variables, including examples of their usage and common pitfalls to avoid. $0 – The name of the script being executed.

  3. Bash (Unix shell) - Wikipedia

    Bash (short for " Bourne Again SHell ") is an interactive command interpreter and scripting language developed for Unix -like operating systems. Created in 1989 by Brian Fox for the GNU Project, [7] it …

  4. Bash scripting cheatsheet - Devhints.io cheatsheets

    Note: $@ and $* must be quoted in order to perform as described. Otherwise, they do exactly the same thing (arguments as separate strings). See Special parameters. Note that [[ is actually a …

  5. Bash Tutorial - W3Schools

    Bash is used to write scripts and run commands on Linux systems. It helps automate tasks, manage system operations, and boost productivity. Tip: Sign in to track your progress. A shell is a text-based …

  6. Introduction to Bash and Bash Scripting - GeeksforGeeks

    Jul 23, 2025 · In this article we discuss Bash scripting which plays a vital role in automating tasks within the Linux environment. As a command-line interpreter, Bash offers simplicity and ease of use for …

  7. bash - What are the special dollar sign shell variables ... - Stack ...

    Sep 14, 2012 · $! is the PID of the most recent background command. $0 is the name of the shell or shell script. Most of the above can be found under Special Parameters in the Bash Reference …

  8. The Bash Guide

    A complete guide for newcomers and advanced users to correct usage and deepen understanding of the bash shell language.

  9. bash (1) - Linux manual page - man7.org

    Bash sets PS1 and $- includes i if the shell is interactive, so a shell script or a startup file can test this state. The following paragraphs describe how bash executes its startup files. If any of the files exist …

  10. A gentle introduction to Bash functions - How-To Geek

    Dec 25, 2025 · Subscribe to the newsletter for sharper Bash skills Level up your shell work - subscribe to the newsletter for practical Bash function patterns, clear argument-handling examples, and best …