Two very useful command shortcuts that haven't been mentioned in the previous responses are:
G (uppercase) to go to the end and g (lowercase) to go to the beginning.