Consider an infinite line charge having uniform linear charge density and passing through the axis of a cylinder. What will be the effect on the flux passing through curved surface if the portions of the line charge outside the cylinder is removed?
According to Gauss's law, flux is contributed only due to charges enclosed inside the surface. Hence, even if portion of line charge outside the cylinder is removed, the flux through the cylinder remains same.