The old fashioned way is to measure the distance to the subject and turn the dial on the lens to match.
Otherwise, the camera’s viewfinder will give you focus information. It depends on the camera and type of viewfinder (optical or EVF). Some methods include
- Dithering prism
- Split screen prism
- LED indicator
- Focus peaking highlights
However, DSLRs with optical viewfinders are not well suited for manual focus. You’d need to turn on the LED display in live mode and focus that way.
Autofocus is very fast, but manual focus is generally the most accurate.