Copy files using UBUNTU terminal

Links for php scripts

Moderators: macek, egami, gesf

phpkiller
New php-forum User
New php-forum User
Posts: 31
Joined: Thu Jun 28, 2012 2:11 pm

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.

Return to “PHP Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest