Total Pageviews

Wednesday, August 27, 2014

copy command for folder and subfolder also with the option to preserve timestep command to create folder and subfolder and delete folder and subfolder


use following command to copy folder and subfolder. this command will also preserve timestmep.

$cp -Rp   /source-folder /destination-folder


to tar and gunzip

$tar czvf filename /destination-folderpath

command to make folder and subfolder

$mkdir -p folder1/folder2/folder3

to delete folder and subfolder


$rm -rf folder1

No comments:

Post a Comment