Most city, county state and federal offices and courts will be closed tomorrow for the July 4 holiday. Only emergency service agencies will be open. But government offices will be open Thursday and Friday.

Banks and libraries throughout the region will be closed tomorrow and will reopen Thursday.

The following is a rundown of other openings and closings tomorrow:

TRASH COLLECTIONS -- Normal collections in Alexandria, Arlington, Falls Church, Fairfax City and Fairfax County. No collections in the District of Columbia, Montgomery County and Prince George's County. The Montgomery landfill will be open, however.

METRO SUBWAY - Trains will operate from 8 a.m. until the last trains depart at 12:04 a.m. Thursday from Metro Center station, 12th and G streets NW. The Nassif Building entrance to the L'Enfant Plaza station, the Mall entrance to the Smithsonian station, and the Arlington Cemetery station, which normally are closed in the evening, will remain open. The Vermont Avenue entrance to the McPherson Square station and the Third Street entrance to the Judiciary Square station will be closed.

The regular 50-cent fare will be collected until 9 p.m.; after that, rides for the trip home after the Mall fireworks display will be free. To avoid congestion, riders are urged not to transfer unless necessary between the Red and Blue lines at Metro Center, even if it means exiting at a farther station.

METRO BUSES -- Extra service will be operated on many routes, as listed Monday on page C2 of The Washington Post, to carry people downtown or to Metro subway stations. Regular fares ranging from 40 to 80 cents will be collected until 9 p.m., from then until midnight rides will be free. Information: 637-2437.

MONTGOMERY COUNTY RIDEON BUSES -- Silver Spring routes will be operated on an augmented Sunday schedule, with rides free after 9 p.m. Gaithersburg routes will not be operated. Information 468-4100.

METRO PARKING LOTS -- There will be free parking at Metro-operated lots at Silver Spring, Takoma, Fort Totten, Rhode Island Avenue, New Carrollton, Landover, Cheverly, Deanwood and Minnesota Avenue stations. Parking will cost $1 at Stadium-Armory station and $1.25 at Pentagon City station. Free parking will be provided at the Pentagon north lot, with free shuttle buses to Metro subway stations.

LIQUOR STORES -- Government-operated stores will be closed in Montgomery County and Virginia. Many privately owned stores will be open in the District of Columbia, Prince George's County and elsewhere in Maryland.

SUPERMARKETS AND DRUGSTORES - Major chains will be open.

RETAIL STORES - Major shopping centers will be open, although some stores within them may be closed. The retail bureau of the Metropolitan Washington Board of Trade listed these major stores as open until 5 or 6 p.m.: Hechinger, Hecht's, Herman's Sporting Goods, Hub, K-mart, Lerner, Montgomery Ward, G.C. Murphy, J.C. Penney, Raleighs, Sears Roebuck, W. & J. Sloane, Woodward & Lothrop, Woolco and Zayre. The bureau listed these major stores as closed: Bloomingdale's, Discount Records and Books, Garfinckel's, Lewis & Thos. Saltz, Lord & Taylor, I. Magnin, Melart Jewelers, Mickelson's, Nieman Marcus and Saks Fifth Avenue.

RECREATION - Many government-operated centers have scheduled special July 4 programs, but most regular weekday programs will not be operated. In the District of Columbia, one recreation center will be open in each voting ward; for information, call 673-7671. All D.C. swimming pools will be open for free swimming from 11 a.m . to 7 p.m.; for information, call 282-0995 or 673-7671.