Linux - Moving/Copying Files via terminal

  • Thread starter Thread starter Arman777
  • Start date Start date
  • Tags Tags
    files Linux
AI Thread 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
Thread 'Star maps using Blender'
Blender just recently dropped a new version, 4.5(with 5.0 on the horizon), and within it was a new feature for which I immediately thought of a use for. The new feature was a .csv importer for Geometry nodes. Geometry nodes are a method of modelling that uses a node tree to create 3D models which offers more flexibility than straight modeling does. The .csv importer node allows you to bring in a .csv file and use the data in it to control aspects of your model. So for example, if you...
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...

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
Back
Top