Steps
📚 LearnStep 1 of 6
Anatomy of a Command
Understanding command structure
Every terminal command has the same structure:
``` command [options] [arguments] ```
Examples:
```bash ls -la ~/Desktop ``` - `ls` = the command - `-la` = options (flags that modify behavior) - `~/Desktop` = argument (what to operate on)
```bash git commit -m "My message" ``` - `git` = the command - `commit` = subcommand - `-m` = option (flag) - `"My message"` = argument
```bash npm install lodash ``` - `npm` = the command - `install` = subcommand - `lodash` = argument (what to install)
**Options usually start with:** - `-` (short form): `-l`, `-a` - `--` (long form): `--all`, `--version`
**Getting help:** Most commands support: ```bash command --help ```