About 1,770,000 results
Open links in new tab
  1. Bash Special Variables ($0, $?, $#, $@, $$, $*, $-) - TecAdmin

    May 2, 2025 · In that case, you can use the $@ variable to iterate over each directory name and list the files in that directory.

  2. 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 …

  3. Demystifying $@ in Bash: The Ultimate Guide to Script Arguments

    Dec 27, 2023 · That‘s where the built-in Bash parameter $@ comes into play. So what exactly is $@? $@ refers to all of the command line arguments passed to a Bash script when executing it. Unlike $1 …

  4. What’s the Difference Between $* and $@ in Bash ... - Baeldung

    Mar 18, 2024 · In Bash scripting, understanding the difference between $* and $@ is crucial for handling command-line arguments correctly. We use both variables to represent the command-line arguments …

  5. 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 …

  6. 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 …

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

  8. 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 …

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

    This variable can be used with BASH_LINENO and BASH_SOURCE. Each element of FUNCNAME has corresponding elements in BASH_LINENO and BASH_SOURCE to describe the call stack.

  10. The Bash Guide

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