I've issued the following command:
sudo cp ~/Transfers/ZendFramework-1.11.4-minimal/library/Zend/* ~/public_html/cmsk.dev/library/
When I do this, I start getting the following messages:
cp: omitting directory `Tag'
cp: omitting directory `Test'
cp: omitting directory `Text'
cp: omitting directory `TimeSync'
cp: omitting directory `Tool'
cp: omitting directory `Translate'
cp: omitting directory `Uri'
cp: omitting directory `Validate'
and so on...
Why do I get these messages ?
*
is expanded by Bash, not bycp
. Test it yourself by puttingecho
in front of your command. When expanded, it matches everything with a preceding...library/Zend/
(the files and directories in it). – Lekensteyn Apr 18 '11 at 15:26omitting directory 'directory'
doesn't mean that it is deleting that directory. – Bishwas Mishra Feb 14 '18 at 08:43chmod a+rx ~/
after i tried to copy withcp /home/2110/* /home/2111/
it produces error which states permission denied . where i was wrong . sorry to comment because i cant ask duplicate questions. i hope for quick reply :) – jasinth premkumar Feb 16 '18 at 13:58/home/2110
are owned by user 2110 while files in/home/2111
are supposed to be owned by 2111. To set the owner, use something likesudo chown -R 2111 /home/2111
. – Lekensteyn Feb 16 '18 at 15:42-r
or-R
- I usually use-R
for recursive because there are some commands that only accept-R
for recursive. – thomasrutter Aug 15 '19 at 03:25