How to make ADB and Fastboot executable

found this thread as I have the same purpose with the case “to install another os on my android mobile” actually / e / os.

managed to follow btwarden’s instructions, (would never have succeeded with this otherwise, so thank you) but when I follow the following instructions under Using ADB and fastboot | LineageOS Wiki

"Setting up adb
To use adb with your device, you’ll need to enable developer options and USB debugging:

Open Settings, and select “About”.
Tap on “Build number” seven times.
Go back, and select “Developer options”.
Scroll down, and check the “Android debugging” or “USB debugging” entry under “Debugging”.
Plug your device into your computer.
On the computer, open up a terminal / command prompt and type adb devices.
A dialog should show on your device, asking you to allow usb debugging. Check “always allow”, and choose “OK”.

Congratulations! adb is now ready to use with your device. "

but the following does not work “On the computer, open up a terminal / command prompt and type adb devices.”
but I get the answer “adb: command not found”

so what could be wrong here?