Codele / How software is built
Command-line tools
Some programs have no buttons. You run them by typing a command with extra words, called arguments and flags. See how a tool reads what you typed.
- A command-line tool is run by typing its name in a terminal, with no buttons or windows.
- The line is cut at spaces into pieces. The first is the tool; the rest are handed to it as a list.
- An argument is what the tool works on, such as a name or a file.
- A flag changes how it works, such as --shout. Some flags carry a value, such as --times 2.
- Tools can be chained together and run by other programs, which makes them ideal for repeating jobs.
Loading the playable lesson…