cp command is used to copy any number of files or directories from a source to destination. Cp command is also used for taking backup before copying so that the links can be preserved.It is also possible to create a soft link or hard link instead of copying a file through cp command. There is also an option to preserve the properties of file like, ownership, mode, timestamps.