Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
And it still asks me to confirm each file. By looking at man, it looks like I am doing it write. I am trying to copy a directory's contents including sub directory's. There is 100's of files. I must be doing something wrong.
By default cp does NOT prompt for overwrite. If you use the "-i" interactive option it does prompt.
This suggests to me that you likely have cp aliased so that it always adds the -i option.
Type "alias" to see defined aliases and see if cp appears in the list.
To turn off the alias you can run "unalias cp". To turn it off permanently you'd have to find whatever file (typically /etc/bashrc, /etc/bashprofile, $HOME/.bashrc or $HOME/.bash_profile) that sets it and comment out or remove the alias.
By default cp does NOT prompt for overwrite. If you use the "-i" interactive option it does prompt.
This suggests to me that you likely have cp aliased so that it always adds the -i option.
Type "alias" to see defined aliases and see if cp appears in the list.
To turn off the alias you can run "unalias cp". To turn it off permanently you'd have to find whatever file (typically /etc/bashrc, /etc/bashprofile, $HOME/.bashrc or $HOME/.bash_profile) that sets it and comment out or remove the alias.
That did it. I use very little so I will just unalias it when needed. However, that's good to know though so I know what to do in the future when that needs to be done and with other commands too.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.