How to copy directory in Linux
To copy a directory in Linux, the following command must be used:
cp -rfpa dir1 dir2
All four of the parameters (-rfpa) as shown here MUST be used to produce dir2 which is an exact duplicate of dir1.
Most other websites specify just the two options -rf. This is not sufficient for an exact copy.
˅˅˅ Additional valuable information is available at one of the links below: ˅˅˅
Did you like the article? Let Google Search know by clicking this button:
Page last modified 21-May-16 14:33:45 EDT
Previous page: Best Linux distribution for me
Next page: What I hate about Linux and other people's Linux articles