1

I am NOT able to cut and paste a text file from /home to /home/Desktop folder in Ubuntu 20.04 ... The error shown in the popup is : There was an error moving the file into /home/aakash/Dekstop. Can't copy over directory.

What does this mean ?

See the attached screenshot

15
  • @GopalS Your suggestion is about a different issue. In your suggestion, it was tried to copy ./Desktop . But in my case, I am trying to cut and paste a text file using mouse' right click Cut and Paste option. There is no role of terminal and command line instructions in my case.
    – aks
    Dec 7, 2020 at 6:24
  • You already have a directory named rough. You can't paste a file named rough in to Desktop while the directory exists
    – muru
    Dec 7, 2020 at 6:52
  • The filename has to be unique. There is already a folder (directory) named rough. Try renaming the text file first to rough.txt and then move it to the desktop.
    – Parto
    Dec 7, 2020 at 7:41
  • @muru Oh Thanks a lot. I am surprised because this was not a problem in Windows. In Windows, a file and folder name can be same.
    – aks
    Dec 7, 2020 at 10:41
  • @AakashKumar no, they can't.
    – muru
    Dec 7, 2020 at 10:46

1 Answer 1

1

You have a folder named exactly like the file you're attempting to move. You cannot have a file and a folder with the same name in the same parent folder.

Rename the file or the folder and you will be able to move the file to the Desktop.

2
  • Oh Thanks a lot. I am surprised because this was not a problem in Windows. In Windows, a file and folder name can be same.
    – aks
    Dec 7, 2020 at 10:42
  • Hey, how did you edit the question to show the image ?? I am curious to know. Is that because you may have more points in your account which permitted you to do so ??
    – aks
    Dec 7, 2020 at 10:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.