Cash famously wrote "Folsom" after viewing the 1951 movie "Inside the Walls of Folsom Prison," which showed inmates living in harsh conditions in a time before the 1940s prison reform. After he released the song in 1955, the singer performed it at Folsom Prison in 1968, and the live recording of Cash singing it there is one of the most famous live songs ever published.
The biopic about Cash's life, "Walk the Line," began as the singer was waiting to go onstage at the prison and thought back over past events in his life.