A train (often long-distance); historically used for trains in general. In modern usage, it's often replaced by 列車 or 電車.
子どものころ、汽車に乗って海へ行った思い出がある。
I remember riding the train to the sea when I was a child.
山間部を走る汽車の旅は景色がきれいだ。
A train journey through the mountains offers beautiful scenery.
明日の移動は汽車で行く予定だ。
I plan to go by train tomorrow.
Originally referred to steam-powered trains (steam locomotives); used in historical or contextual references.
昔の写真には蒸気で走る汽車が写っている。
Old photographs show steam trains running.
この博物館には実際に動く復元された汽車が展示されている。
This museum displays a restored steam train that actually runs.