Commands & Arguments (Optional)

A short introduction to commands, arguments, and options.

If you’re a beginner, then it is strongly recommended that you read this section to grasp the basic concepts of commands, arguments, and options. If you are somehow familiar with these concepts already, then you can skip this lesson and jump to the next lesson where you can test your command line skills by using interactive code widgets. Good luck!

Command Syntax

The general syntax followed by any Bash command is:

command_name [-option(s)] [argument(s)]

Let’s divide this syntax and understand what each of the terms mean:

Get hands-on with 1200+ tech skills courses.