How to use CP command in Linux/Unix

Copy command syntax as follows
cp SOURCE DEST
Copy file from one location to another location
cp file1 /tmp/file2
To copy a directory, including all its files and subdirectories, to another directory
cp -R /tmp/test  /home/user/dest
Post a Comment (0)
Previous Post Next Post

Recent Posts