# Arguments: $1, $# and "$@"

The words typed after a script's name are its arguments: $1 is the first, $2 the second, $# says how many there are, and "$@" hands all of them on, each in one piece.

![Cheat sheet for the lesson Arguments: $1, $# and "$@": The words typed after a script's name are its arguments: $1 is the first, $2 the second, $# says how many there are, and "$@" hands all of them on, each in one piece.](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/b5a3ecf2f4a947e2b9f3da94d7e40a9e.webp)

- Category: Bash
- Level: Apprentice
- Tags: argument, linux, positional-parameter, shell-script, unix
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/bash-script-arguments-cheat-sheet
