Waynesboro (formerly Flack), is an independent city in the U.S. state of Virginia. As of the 2010 census, the population was 21,006.