extracting root folder to a user home folder command
I mounted a folder inside my C drive to a root path of mnt/myFolder
now I am trying to copy the contents of that folder to /home/dev/build/mysource I used that command that was taught by my senior inside the folder that I want to copy but it is not working as the error I am getting is Code:
-bash: syntax error near unexpected token `(' this is my command: Code:
tar cvf - * : (cd /home/dev/build/mysource; tar xf -) |
Quote:
jdk |
Quote:
Code:
cp -r /mnt/myFolder /home/dev/build/mysource |
Quote:
Also, the * will miss any hidden files, but . will copy everything. Code:
tar cvf - . | (cd /home/dev/build/mysource; tar xf -) |
All times are GMT -5. The time now is 05:07 PM. |