command-line argument

A word given to a command after its name, such as the file names in cp a.txt b.txt.

In more detail

The shell splits the line into arguments after expansion, and the program receives them as a list. Options such as -r are arguments too; the remaining ones, usually file names, are called operands. A value with spaces must be quoted to stay a single argument.

Related terms

Taught in

References

Certification courses