Linux - Moving/Copying Files via terminal

  • Thread starter Thread starter Arman777
  • Start date Start date
  • Tags Tags
    files Linux
Click For Summary
To move files and folders from one directory to another in a Linux environment, the command structure is crucial. The suggested command `cp mv -vr \Downloads\* .` is incorrect; the correct command for moving directories is simply `mv dir1 dir2`. The discussion highlights the confusion between using `mv` (move) and `cp` (copy), especially when dealing with files that share the same names but contain different content. The `-v` argument, which stands for verbose, is optional and provides additional feedback during the operation. The conversation also acknowledges minor errors due to spellcheck issues while seeking clarification on the commands.
Arman777
Insights Author
Gold Member
Messages
2,163
Reaction score
191
I am trying to move files and folders from one directory to other. Both of the files has multiple subfolders and files.

From the reasearch I have made it seems that the answer should be something like,

`cp mv -vr \Downloads\* .`

But I am not sure this is true or not. I am also not sure about using mv or copy. The files that I am copying have the same file names but the content is different.

Is this command correct ? Do I need '-v` argument ?
 
Technology news on Phys.org
Yes sorry it’s that darn spellcheck acting up again. I’m in Yosemite with spotty internet and tried to fix it but lost the signal.
 
Last edited:
Thanks for the help..
 
  • Like
Likes berkeman and jedishrfu

Similar threads

Replies
20
Views
3K
Replies
9
Views
3K
Replies
16
Views
6K
Replies
9
Views
1K
Replies
1
Views
3K
Replies
1
Views
2K
Replies
1
Views
4K
Replies
3
Views
2K
Replies
1
Views
4K