- Joined
- Jul 4, 2012
- Messages
- 8
- Reaction score
- 0
- Points
- 1
Every time I open the terminal it gets me to /Users/myuser. Therefore, I'd like to place a .sh file in there and execute it so I won't have to do this manually all the time, and I would need some help with the following, where the comments are, or any other approaches that are better than mine. It is essential to be easy so I can understand and learn from here.
Then I would simply run the script, eventually make a shortcut on it on my Desktop. Do I have to chmox the file in order to run it, as in a Linux system? Probably yes, that's a stupid question .
Thanks.
Code:
cd Applications/XAMPP/xamppfiles/htdocs/
wget http://wordpress.org/latest.zip
#wait few minutes OR proceed with the next lines if the above has finished? How do I do that?
unzip latest.zip
cd wordpress
#the following does the job but it throws a - mv: rename .. to ../..: Invalid argument; what is wrong with it?
mv * .* ..
cd ..
rmdir wordpress
#a line to exit the console, is this possible?
Then I would simply run the script, eventually make a shortcut on it on my Desktop. Do I have to chmox the file in order to run it, as in a Linux system? Probably yes, that's a stupid question .
Thanks.