Reputation: 75
I'm looking for something like forcing/bypassing overwrite in ssh on copy command??
For Example : If I have a file test1 in /home and in /root
I want to copy the file from root to overwrite on home directory like if I write
cp: overwrite `/home/test1'?
How can we remove this question? How can we force it not to show this overwrite line ... bypass this to yes bydefault I tried -Rf but not working still I'm seeing this....
Anything on this is great help ... I check stack overflow and received this answer but didn't get weather it is working or not
yes | cp -R test1 /home
Is there anything wrong on this??
Thanks & Regards
Kishan Giri
Upvotes: 3
Views: 8503