When all six faces are squares it looks like the following .

It is not a rectangular prism, because a solid (3-dimensional) object which has six faces that are rectangles. It has the same cross-section along a length, which makes it a prism. Its also a "cuboid".