Linux - Moving/Copying Files via terminal

  • Thread starter Thread starter Arman777
  • Start date Start date
  • Tags Tags
    files Linux
Click For Summary

Discussion Overview

The discussion focuses on moving and copying files and folders in Linux using the terminal. Participants explore the correct commands and options to use, particularly regarding the `mv` and `cp` commands, and the implications of using different arguments.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses uncertainty about the command `cp mv -vr \Downloads\* .`, questioning its correctness and the necessity of the `-v` argument.
  • Another participant provides a tutorial link on the `mv` command and states that moving `dir1` to `dir2` can be done simply with `mv dir1 dir2`.
  • A subsequent post corrects a previous typo, indicating that the command should be `mv dir1 dir2` instead of `my dir1 dir2`.
  • A participant acknowledges a mistake due to spellcheck issues and mentions connectivity problems while trying to correct it.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the initial command proposed, and there are multiple viewpoints regarding the correct usage of `mv` and `cp` commands.

Contextual Notes

There are unresolved questions about the specific command syntax and the implications of using different options with the `mv` and `cp` 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   Reactions: berkeman and jedishrfu

Similar threads

  • · Replies 20 ·
Replies
20
Views
4K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 16 ·
Replies
16
Views
7K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K