Representations of the general symmetric group as linear groups in finite and infinite fields