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
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...

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
1K
Replies
1
Views
4K
Back
Top