A scratchpad of useful OS X / linux commands, written with an OS X bias, but you can deal with that I'm sure...
Editing a bash profile
Assuming you run the default bash shell in Terminal on Mac OS X, your bash profile is located in your home directory. It's a hidden file -- use
ls -a to see it. You may not have a profile, in which case you create a file called
.bash_profile in said folder, and go from there.
To edit / create files like this, I use vi, it’s great. More on that later!
Make things executable
When you download shell scripts (.sh files) and the like, you can make these executable by issuing the command
chmod +x YOURFILETODO
This is a broad topic. Anyone considered a RequestedPages
? page?