Thursday, June 18, 2009

Copy a file

simple command cp

cp namefile newnamefile

here the command i use for copy a file

go to /usr/local/etc/folder
maybe inside the folder have 3 files.

you just run this command will cp all files to the point folder and no need to tar.

cp -rp * /path/directory/to/copy
cp -rp feedback /usr/local/www/apache22/data/

No comments:

Post a Comment