Atma
Extreme Android User
Too much time on my hands and I know diddly squat about Linux. I was playing around with this:
# cd /cache
# mv download download.old
# mkdir -p /sdcard/cache/download
# ln -s /sdcard/cache/download download
I want to make an executable (like a batch file) that will run it without having to type all that in. I named it movedownload2.sh in notepad. So I change it to this?
#!/bin/bash
# cd /cache
# mv download download.old
# mkdir -p /sdcard/cache/download
# ln -s /sdcard/cache/download download
Then use this to make it an executable?
chmod a+x movedownload2.sh
And run it like this?
./movedownload2.sh
I have it in the root of the sdcard. Would I cd /sdcard and then run it? That's what I did when making it an executable and didn't get an error.
I thought I was doing ok but when I tried to run it it said, ./movedownload2.sh permission denied
What am I doing wrong? Everything?
# cd /cache
# mv download download.old
# mkdir -p /sdcard/cache/download
# ln -s /sdcard/cache/download download
I want to make an executable (like a batch file) that will run it without having to type all that in. I named it movedownload2.sh in notepad. So I change it to this?
#!/bin/bash
# cd /cache
# mv download download.old
# mkdir -p /sdcard/cache/download
# ln -s /sdcard/cache/download download
Then use this to make it an executable?
chmod a+x movedownload2.sh
And run it like this?
./movedownload2.sh
I have it in the root of the sdcard. Would I cd /sdcard and then run it? That's what I did when making it an executable and didn't get an error.
I thought I was doing ok but when I tried to run it it said, ./movedownload2.sh permission denied
What am I doing wrong? Everything?


