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.
I'm backing up my ubuntu home folder from Fedora 7 because I'm in the course of reinstalling -Ubuntu freezes, and I can't figure out why... Started a thread last week: http://www.linuxquestions.org/questi...ck-ups-590324/
I was almost finished copying when I accidently closed the terminal window. I figure cp -rpuv (recursive, preserve owner, update, verbose) should resume it, but it asks me again for every file that already exists.
Of course I'm deleting and copying again... Not worth the trouble, but if anybody has any idea why it doesn't work, or what my alternatives are...
I suppose you mean .bash_profile (I don't have a .bash_alias)
Code:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
Hi - it sounds like the -i flag for cp is on by default. I presume that this is what The_JinJ was suggesting. Often there are bash aliases, set in e.g. /etc/bashrc, or ~/bash_aliases, and cp could be set to cp -i.
You can list all current alias with
Code:
alias -p
(at least, I think that will list all aliases)
However, even with the -i flag, the -u flag should lead you to skip over any file already copied, so there should be no over-write issues to query in the first place. In that case, it is a bit puzzling.
Then it is. If this is the case, you can opt to run the command directly - not using the alias - by prefixing it with a backslash. i.e.
Code:
\cp -rpuv ...
If you don't ever want this -i option, find the entry in your .bash_profile, .bashrc or and file which is sourced from these, and comment out / delete the line with this alias. The change will only affect new sessions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.