The my_scripts directory is created in this lab step to serve as a designated place for you to store your own custom shell scripts or executable files.
The main purpose of setting up this directory is to:
- Organize your custom scripts: Instead of having scripts scattered across different directories,
my_scriptsprovides a central location for them. - Make custom scripts easily executable from anywhere: Once you add this
my_scriptsdirectory to yourPATHenvironment variable (which is the next step in the lab), any script or executable file you place inside it can be run simply by typing its name in the terminal, regardless of your current working directory. This is shown in steps 4, 5, and 6 of the current lab.
Think of it as creating your own personal "bin" directory where your system will automatically look for commands you want to run.