That depends on which Union forces. U.S. Grant was overall commander of Union forces.
Jefferson Davis the President of the Confederate States was captured on 10 May 1865 at Irwinville Georgia. He served two years as a prisoner at Fort Monroe Virginia.
George Brinton McClellan
As army commander, U.S. Grant. He was reporting to the Union General-in-Chief, Henry Halleck.
Robert Anderson was the commanding officer for the Union during the Battle of Fort Sumter, and P. G. T. Beauregard was the Confederate commander. The battle resulted in a victory for the Confederacy.
robert e lee
General-in-Chief at the outbreak of the war was the elderly Winfield Scott, who would clearly have to retire before long. Although too old for any kind of active role, he was one of the few officers on either side who realized that it would be a long war, and his original plan - derided for its slowness - was more-or-less than plan that the Union eventually followed. Commander of Union troops in the first pitched battle was the unfortunate Irvin McDowell, who knew his army was not ready for combat, but was pushed into it by politicians and press, hungry for action.
The Union had undergone a number of successive commanders , in 1865 the Union commander was U.S.Grant and for the Confederacy it was Robert E. Lee .
The job of commander of the Union Forces was offered to Robert Edward Lee.
Appomattox
Robert Anderson was the commander at Ft. Sumter .
Richmond, Virginia was the capital of the Confederate States of America. Richmond was captured by the Union forces on April 2, 1865.
U.S. Grant
General George Meade was the commander of the Union forces at Gettysburg.
April 14, 1865
U.S. Grant
He was the commander of the Northern Army of Virginia. In 1865 he became Supreme Commander of all Confederate forces.
Lincoln served as President during the Civil War. in 1864, he appointed Grant as the overall commander of Union forces. Grant accepted Lee's surrender in 1865.
Ulysses S.Grant