

Gauss law is valid for a closed surface of any size and shape and for any general charge distribution.
These are some examples-
1. We can find the electric field due to an infinitely long charged wire, by considering a cylindrical gaussian surface.
2. Electric field due to uniformly charged thin spherical shell, by considering concentric gaussian surface.
