I have a simple script that I want to be able to run by double clicking a text file and having it run in terminal so i don't have to do it manually
#!bin/bash $ cd /home/tyler/df_linux $ ./df
I've tried "allow executing file as program" but the file still opens in gedit.
I've also used
sudo chmod +x df while in the directory, terminal asks for my password, i enter it, and then nothing happens.
I've been looking around the internet and my problems are similar to that of if my HDD was NTFS format, i checked using
sudo blkid -o list > ~/myFileSytems and I can see that the script I'm trying to run is in an ext4 partition; so, that isn't the issue.
I've been looking around the internet all day and have found people with similar problems but none of the solutions that I have found have worked.
My question was marked as a duplicate of How do I run executable scripts in Nautilus? and i do not understand why, my problem has nothing to do with nautilus and i cannot seem to find any program called nautilus on my computer.
I am running Ubuntu 14.04.03 and I am trying to run my script in terminal, I am using hashbang and the color of the text in my script has changed to identify that linux understands that it is a script, but the script will not run when I double click the file.