1. An apparatus for sharing contents, the apparatus comprising: a storage unit configured to store contents; a content selector configured to receive a selection signal for one or more contents selected from among the stored contents; a group generator configured to classify the selected one or more contents into one or more groups of content; a code generator configured to generate a service code for a respective group of content, from among the one or more groups of content, based on one or more sharing commands applicable to a type of content within the respective group of content; and a transmitter configured to synchronize with a server and to transmit the service code and information for the respective group to the server, wherein the service code for the respective group represents the one or more sharing commands for sharing content which are commonly applicable to a plurality of different types of content, and the service code is automatically uploaded to the server in response to the apparatus being synchronized with the server through wireless communication and based on service code generation history that is accessible by the server, and the one or more sharing commands for respective content of the classified one or more contents include an access to the respective content.