Gluon flux-tube distribution and linear confinement in baryons