in terminal because it's a one time operation. Alternatively you can use
+x instead of 755 which is more human readable and doesn't touch r,w permissions at all.
depends what the script is supposed to do.
.bashrc and .bash_profile are scripts that initialize bash environment when you open it.
http://stackoverflow.com/questions/4...nd-environment
you can run script and echo $PATH in both terminal and in scripts. They are just commands and there is not much difference between running them in interactive mode in terminal or in an automated collection of commands (script).
mkdir bin is executed in context of current location (directory is given a relative path, not absolute /dir/dir/dir), which means that unless you used
cd to change current dir, bin will be created under your $HOME. If you are unsure what is your current location, run
pwd or
echo $PWD, though your prompt should show current dir already
yes
Bookmarks