You may sign up for an online account with the IRS. See this IRS website.
An Alabama Department of Revenue My Alabama individual account may be entered here.
This TurboTax Help explains how to view, download or print a prior-year return.