Argument
noun
say it: “AR-gyuh-ment” /ˈɑrɡjəmənt/
A word typed after a command that tells it what to work on, such as a file or folder name; the shell separates arguments at the spaces.
What is an argument in a terminal command?
An argument is a word you type after a command to say what it should work on: a file, a folder, some text. The shell splits what you type at the spaces, so a name with a space needs quotes to stay one argument.
ls ~/terminal-practice # one argument: the folder to list
mkdir -p "summer plans" # the quotes keep it one argument
In a sentence
- “With quotes around summer plans, the whole name stayed one argument.”
- “In ls ~/Documents, the folder is the argument: it tells ls which folder to list.”
Level: Novice · More Unix terms at this level
Updated