Copying folders between user directories in Linux

  • Thread starter huntflex
  • Start date
  • Tags Tags
    Linux
1 reply · 2K views · last reply
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
 
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?