How do you unlock and jailbreak iPhone 4?

To jailbreak an iPhone 4 you need to download redsn0w. For better info go to youtube and search ' how to jailbreak iPhone 4 on (whatever your OS is .example: IOS 5).'