Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-15868

RH199: ch09s04 - add note about PATH env variable - RHT2513165

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • RH199 - RHEL10.0-en-2-20251212
    • RH199
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • 9
    • en-US (English)

      URL: ch09s04
      Reporter RHNID: kniederw
      Section title: Guided Exercise: Manage Processes with Job Control
      Language: English

      Issue description

      In step 3:


      I think there should be a note why this works.

      We create a bash script and execute it. Usually you run it via `./control`, however in the above command it "just works".

      The reason it works is because the PATH variable of the user is modified that you can just run `control` and it will pick up the script in `/home/student/bin/`.
      ```
      echo $PATH
      /home/student/.local/bin:/home/student/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
      ```
      Can you please add a note below point 3, that this works due to the above reason?
      Thanks

       

      Workaround:
      After the line `[student@servera ~]$ control technical`, add the following note: 'This command works because the /home/student/bin directory is included in the user's PATH environment variable, allowing the system to find and execute the control script directly. Without this inclusion, you would need to use the ./control command to specify the location of the script.'

       

              glsbugs-hybridcloud@redhat.com PTL - RHEL Team
              carias@redhat.com Carlos Arias
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: