Copying folders between user directories in Linux

  • Thread starter Thread starter huntflex
  • Start date Start date
  • Tags Tags
    Linux
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
huntflex
Messages
26
Reaction score
0
Hello,

I'm having trouble copying some folders from one user to another. I've attempted something like this:

cp -r /olduser/folder ./newuser/folder

it just tells me no such file or directory
Can anybody please help ?

Thank you
 
Physics news on Phys.org
Don't you mean /newuser/folder?
Or ~newuser/folder, if you want to put it in their homedir?
Or ~newuser, if you don't want it in ~newuser/folder/folder?