
Bash Special Variables ($0, $?, $#, $@, $$, $*, $-) - TecAdmin
May 1, 2026 · 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.
Bash Positional Arguments: How to Use $1, $2, $@, and shift
Apr 29, 2026 · Learn how Bash positional arguments work, including $0, $1, $#, "$@", "$*", shift, default values, and function arguments in scripts.
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 …
Bash - GNU Project - Free Software Foundation
Sep 22, 2020 · Bash is the GNU Project's shell—the Bourne Again SHell. This is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and the C shell (csh).
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 …
Bash Scripting Fundamentals - GeeksforGeeks
May 7, 2026 · Bash scripting is the process of writing a sequence of commands in a file and executing them together to perform tasks automatically. Instead of running commands one by one in the …
linux - What does $@ mean in a shell script? - Stack Overflow
Apr 3, 2012 · $@ is special if written in double quotes. Then it will result in a list of quoted values, in your case, trusktr, in the three arguments "foo", "bar", and "boo far". $@ is nearly the same as $*, both …
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. Get certified with our Bash exam, includes a …
Bash Commands Cheat Sheet - phoenixNAP
Dec 19, 2025 · This section lists the most common Bash commands for managing files and directories, searching and sorting data, changing file permissions, and more. Refer to the end of the article to …
bash - What does <<< mean? - Unix & Linux Stack Exchange
It looks like it's feeding the sed program with the string aaa, but isn't << or < usually used for that?