What is the purpose of the `my_scripts` directory?

QuestionsQuestions8 SkillsProDec, 15 2025
0100

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:

  1. Organize your custom scripts: Instead of having scripts scattered across different directories, my_scripts provides a central location for them.
  2. Make custom scripts easily executable from anywhere: Once you add this my_scripts directory to your PATH environment 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.

0 Comments

no data
Be the first to share your comment!