A systematic approach is the best way to achieve confidence in all areas of the bass. When you get these five shapes under your fingers they'll give you access to the major and minor pentatonics all across the fretboard (including their modes as well).
Each shape has its particular features which we'll examine. I laid out the best fingering for you to try and have included exercises for getting the patterns under your belt (these are also a killer technical workout!). To start, let's learn these shapes in the keys of G major and E minor.