Linux cp | Linux Copy File
'cp' means copy. 'cp' command is used to copy a file or a directory.
To copy a file into the same directory syntax will be,
In above snapshot, we have created a copy of 'docu' and named it as 'newdocu'. If in case,
To copy a file in a different directory
We have to mention the path of the destination directory.
In the snapshot below, earlier there is no 'text' file. After giving the command, 'text' file has been copied to the destination directory that is 'Desktop'.