Vibrating micro-/nanosized cantilever beams under an applied axial force are the key components of various devices used in nanotechnology. In this study, we perform a complete theoretical investigation of the cantilever beams under an arbitrary value of the axial force vibrating in a specific environment such as vacuum, air or viscous fluid. Based on the results easy accessible expressions enabling one the fast and highly accurate estimations of changes in the Q-factor and resonant frequencies of beam oscillating in viscous fluid caused by the applied axial force are derived and analyzed. It has been also shown that for beam-to-string and string vibrational regimes the mode shape starts to significantly deviate from the one known for a beam without axial force. Moreover, a linear dependency of the vibrational amplitude in resonance on the dimensionless tension parameter has been found. We revealed that only a large axial force, i.e. the string vibrational regime, significantly improves the Q-factor of beams submerged in fluid, while an increase of the axial force in beam and beam-to-string transition regimes has a negligibly small impact on the Q-factor enhancement. Experiments carried out on the carbon nanotubes and nanowires are in a good agreement with present theoretical predictions.