mv: cannot create directory permission denied

:/usr/share/blender/datafiles$ mv "/home/bob/Documents/uncompressed files/filmic-blender-master" /usr/share/blender/datafiles
mv: cannot create directory '/usr/share/blender/datafiles/filmic-blender-master': Permission denied

So basically... I don't know what's wrong. and I have been googaling for an hour. It dose not help that I can't find any examples of a file being moved from one long directory path to another long directory path.

1 Answer

You have an error because your account doesn't have permission to write to the directory where you are trying to move the file. The space in /usr/share is system-wide space. It's not owned or writable by a normal account.

You can run the command in a elevated mode using sudo. This will make the command have the effect of being run by the superuser (root).

Run this command instead:

$ sudo mv "/home/bob/Documents/uncompressed files/filmic-blender-master" /usr/share/blender/datafiles/

Note
I added a trailing slash "/". It isn't required. But it's a safe guide to avoid mistakenly moving a file into a file instead of a directory. If you misspell the target directory you could loose your file by writing to a file by that name instead.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like