The position of fluid invasion in an open capillary increases as the square root of time when the capillary and viscous forces are balanced when gravity and inertia terms are neglected. Although this fluid invasion into open-end capillaries has been well described, detailed studies of fluid invasion and motion in closed-end capillaries have not been explored throughly. We demonstrate, theoretically and experimentally, a fluid motion in closed-end capillaries where the movement of the meniscus is accompanied by adiabatic gas compression inside the capillary. Theoretically, we find fluid oscillations during invasion at short time scales by solving the one dimensional momentum balance. This oscillatory motion is evaluated to determine which physical forces dominate for different conditions.