Uses of cp command with real time scenario

 


                                           



1. cp


a. It is a command which is used to copy the files or directories from one place to another place.


Example:


~$ cp Topics.odt /home/anil/Downloads/

~$


Real Time Problem: Suppose you are working in a company and your manager ask you to copy the file in one more location. At this point of time above example help you.


b. We can preserve the permission of the files or directories while copying from source to destination.


Example:


~$ cp -dR --preserve=all Text.txt /home/anil/Downloads


Real Time Problem: Suppose you are working in a company and your manager ask you to copy the file in to another location by preserving the ownership and permission of the file. At this point of time above example help you.

If you are looking for more example please click on below link:

https://payhip.com/b/CqtSZ



Comments

Popular posts from this blog

Python & Shell Scripting Real Time Course Book & Videos

Top Five Devops Technical Interview QA Books

Linux-Command Hands-On (DF)