Pershing was born on a farm near Laclede, Missouri, to businessman John Fletcher Pershing and homemaker Ann Elizabeth Thompson. Pershing's great-great-grandfather, Frederick Pershing, whose name originally was Pfersching, emigrated from Alsace, leaving Amsterdam on the ship Jacob, and arriving in Philadelphia on October 2, 1749. Pershing's mother was of English descent. He also had five siblings: brothers James F. (1862-1933) and Ward (1874-1909), and sisters Mary Elizabeth (1864-1928), Anna May (1867-1955) and Grace (1867-1903); three other children died in infancy.

Pershing reported for active duty on September 30, 1886, and was assigned to Troop L of the 6th U.S. Cavalry stationed at Fort Bayard, in the New Mexico Territory. While serving in the 6th Cavalry, Pershing participated in several Indian campaigns and was cited for bravery for actions against the Apache. During his time at Fort Stanton, Pershing and close friends Lt. Julius Penn and Lt. Richard B. Paddock were nicknamed "The Three Green P's," spending their leisure time hunting and attending Hispanic dances. Pershing's sister Grace married Paddock in 1890. Between 1887 and 1890, Pershing served with the 6th Cavalry at various postings in California, Arizona, and North Dakota. He also became an expert marksman and, in 1891, was rated second in pistol and fifth in rifle out of all soldiers in the U.S. Army. On December 9, 1890, Pershing and the 6th Cavalry arrived at Sioux City, Iowa, where Pershing played a role in suppressing the last uprisings of the Lakota (Sioux) Indians. Though he and his unit did not participate in the Wounded Knee Massacre, they did fight three days after it on January 1, 1891 when Sioux warriors attacked the 6th Cavalry's supply wagons. When the Sioux began firing at the wagons, Pershing and his troops heard the shots, and rode more than six miles to the location of the attack. The cavalry fired at the forces of Chief War Eagle, causing them to retreat. This would be the only occasion where Pershing would see action in the Ghost Dance campaign. In September 1891 he was assigned as the Professor of Military Science and Tactics at the University of Nebraska-Lincoln, a position he held until 1895. While carrying out this assignment, Pershing attended the university's College of Law, from which he received his LL.B. degree in 1893. He formed a drill company of chosen university cadets, Company A. In March 1892, it won the Maiden Prize competition of the National Competitive Drills in Omaha, Nebraska. The Citizens of Omaha presented the company with a large silver cup, the "Omaha Cup." On October 2, 1894, former members of Company A established a fraternal military drill organization named the Varsity Rifles. The group renamed itself the Pershing Rifles in 1895 in honor of its mentor and patron. Pershing maintained a close relationship with Pershing Rifles for the remainder of his life. On October 20, 1892, Pershing was promoted to first lieutenant and in 1895 took command of a troop of the 10th Cavalry Regiment, one of the original Buffalo Soldier regiments composed of African-American soldiers under white officers. From Fort Assinniboine in north central Montana, he commanded an expedition to the south and southwest that rounded up and deported a large number of Cree Indians to Canada.

Using a quote from the above article, answer the following question: What was Pershings first job
Troop L of the 6th U.S. Cavalry stationed at Fort Bayard, in the New Mexico Territory.