2

I'm trying to install a driver using a shell file:

yoav@yoav-System:~/Documents/WIFI_DRIVER$ ls
android_ref_codes_JB_4.2  btcoex    install.sh        WiFi_Direct_User_Interface
android_ref_codes_KK_4.4  document  readme.txt        wireless_tools
android_ref_codes_L_5.0   driver    ReleaseNotes.pdf  wpa_supplicant_hostapd

Then:

yoav@yoav-System:~/Documents/WIFI_DRIVER$ install.sh
install.sh: command not found

Fair enough:

yoav@yoav-System:~/Documents/WIFI_DRIVER$ ./install.sh
bash: ./install.sh: Permission denied

How about this:

yoav@yoav-System:~/Documents/WIFI_DRIVER$ sudo ./install.sh
sudo: ./install.sh: command not found

What am I doing wrong?

2
  • Did you remember to make the shell script executable?
    – user535733
    Dec 14, 2019 at 14:41
  • 1
    Make the install.sh executable first: sudo chmod +x install.sh and try again: ./install.sh
    – chili555
    Dec 14, 2019 at 14:50

1 Answer 1

2

It may turn out that the script does not have executable permission.

1.Make the script executable using

sudo chmod +x install.sh

2.Run the script using

./install.sh

If you get an error indicating bash: ./install.sh: Permission denied' , run the command with elevated privileges

sudo ./install.sh

Not the answer you're looking for? Browse other questions tagged .