For what length of time can a person survive after being diagnosed with cirrhosis of the liver?

Years. Depending on the cause of cirrhosis, whether that cause is eliminated (e.g. Alcohol intake is stopped), and how much synthetic function is left in the liver, the patient could live from hours to years. Regulating fluid and salt intake is important, and avoiding infections is crucial. Further, if the person qualifies for transplant and is transplanted, they could live a decade or more, depending.