← Back to search

Raspberry Pi Workshop - Chapter 3 - Your First Shell Script

Core Electronics 8:06

26,285 views · 184 likes Watch on YouTube ↗

The full tutorial for this video (with images and step-by-step tips) https://core-electronics.com.au/tutorials/raspberry-pi-workshop-for-beginners.html

Arguments are pieces of information that we pass in to a program or function. When you issue a command like cd /home/pi, here the command is cd and there is one argument, /home/pi.

In BASH, arguments are accessed in the order they were passed in with $x, where x is the argument number. This means that $1 refers to the first argument, and $4 refers to the 4th argument (if there is one). The name of the command issued is $0.


Core Electronics is your home in Australia for:

Raspberry Pi https://core-electronics.com.au/raspberry-pi.html

Category (YouTube): Education

Playback is via YouTube's official embedded player. Data from YouTube; Exumo is not affiliated with YouTube.