- 3,129 hits
Place for playing with commands…
ODOC : $ cp source_file_path destination_file_path.This copy cmd helo to copy one file from one directory to another directory. To copy the whole directory content, we need to use -r as option.
eg: $ cp a.txt b.txt cmd will copy the content of a.txt into b.txt and saved into the current directory itself.
$ cp -r /home/arul/photos /home/arul/fun/old_photos. This cmd will copy the contents of photos folder into fun directory and rename it into ‘old_photos’. 🙂