Running the command
/data/jritchie$ mv ~/jenkins_dev /data/jritchie/jenkins_dev
I'm getting a bunch of errors like the following:
mv: cannot remove `/home/jritchie/jenkins_dev/plugins/valgrind/WEB-INF/lib': Directory not empty
This is similar to errors returned by rm.
My question is, does this error mean that my files were all successfully moved to the new location, but removing them from the old location failed? Or that they didn't get moved at all? Can I safely remove the old files with rm -r ~/jenkins_dev
?
sudo mv ~/jenkins_dev /data/jritchie/jenkins_dev
, maybe you do not have permissions? – KernelPanic Oct 7 '15 at 19:03+x
permission so the command can enter the directory. – KernelPanic Oct 7 '15 at 19:17$ ls -lh ~/jenkins_dev/plugins/valgrind/WEB-INF/
givestotal 4.0K drwxr-xr-x 2 jritchie software 4.0K Oct 7 12:06 lib
– Jacob Ritchie Oct 7 '15 at 19:18root
has all privileges, other users fromroot
group do not have+w
permission as all other users. It seems you cannot write into directory therefore files cannot be deleted. – KernelPanic Oct 7 '15 at 19:21