If you are a linux user and a hardcore command line user , then you would often find yourself using the commandline more than a GUI.Especially if you are running a linux server which is command line only.Now in linux to copy files , you use the cp command and if you are getting an error like " Omitting Directory : /path/to/folder " then its purely because of a simple mistake in your syntax.So here's how its done :
Now the default way to copy a file as mentioned eariler is to use the cp command.Now its usual syntax would be cp /path/to/source/folder /path/to/destination/folder . Now when you use this syntax , you may get a Omitting Directory error.
The fix is simple just add a -r ( recursive option ) after cp in the command . So your command syntax would be cp -r /path/to/source/folder /path/to/destination/folder
Example : Say i want to copy a folder /home/prash/folder1 to another folder say to /home/prash/folder2. THen your command would be cp -r /home/prash/folder1 /home/prash/folder2
|
0
comments
]
0 comments
Post a Comment