Board index   FAQ   Search  
Register  Login
Board index PHP PHP Scripts

Copy files using UBUNTU terminal

Links for php scripts

Moderators: macek, egami, gesf

Copy files using UBUNTU terminal

Postby phpkiller » Tue Feb 25, 2014 1:06 am

We can copy the content of a folder /source to another existing folder /dest with the command

cp -a /sourcepath/. /destinationpath/

The -a option is an improved recursive option, that preserve all file attributes, and also preserve symlinks.

The . at end of the source path is a specific cp syntax that allow to copy all files and folders, included hidden ones.
phpkiller
New php-forum User
New php-forum User
 
Posts: 31
Joined: Thu Jun 28, 2012 2:11 pm

Return to PHP Scripts

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron