I've noticed Wikipedia has many direct links to specific sections in their pages in search results descriptions. For example when searching for 'stackoverflow history wikipedia' the first result that comes up is the stackoverflow page along with a direct link to that specific section in the page ('history') with a 'jump to' link. this search on google How can I do that?
Those links are generated automatically. You can't explicitly tell Google to produce them, but can increase your chances by creating descriptively-named internal anchors on long pages and producing a "table of contents" block linking to them. I don't have a documentation page right at hand, but the announcement post for the feature has a bit of information.