Can't move the project folder during installation of laravel


#1

hi

I was installing laravel 5.4 in my workspace.

One of the step was to move the files and folders from the ‘project’ folder to your workspace folder.when tried to do it i got the error message.

mv: ‘project’ and ‘./project’ are the same file
mv: cannot move ‘/bin’ to ‘./bin’: Permission denied
mv: cannot move ‘/boot’ to ‘./boot’: Permission denied
mv: cannot move ‘/build’ to ‘./build’: Permission denied
mv: cannot move ‘/data’ to ‘./data’: Permission denied
mv: cannot move ‘/dev’ to ‘./dev’: Permission denied
mv: cannot move ‘/etc’ to ‘./etc’: Permission denied
mv: cannot move ‘/home’ to a subdirectory of itself, ‘./home’
mv: cannot move ‘/lib’ to ‘./lib’: Permission denied
mv: cannot move ‘/lib64’ to ‘./lib64’: Permission denied
mv: cannot move ‘/lost+found’ to ‘./lost+found’: Permission denied
mv: cannot move ‘/media’ to ‘./media’: Permission denied
mv: cannot move ‘/mnt’ to ‘./mnt’: Permission denied
mv: cannot move ‘/nix’ to ‘./nix’: Permission denied
mv: cannot move ‘/opt’ to ‘./opt’: Permission denied
mv: cannot move ‘/proc’ to ‘./proc’: Permission denied
mv: cannot move ‘/root’ to ‘./root’: Permission denied
mv: cannot move ‘/run’ to ‘./run’: Permission denied
mv: cannot move ‘/sbin’ to ‘./sbin’: Permission denied
mv: cannot move ‘/srv’ to ‘./srv’: Permission denied
mv: cannot move ‘/sys’ to ‘./sys’: Permission denied
mv: cannot move ‘/tmp’ to ‘./tmp’: Permission denied
mv: cannot move ‘/usr’ to ‘./usr’: Permission denied
mv: cannot move ‘/var’ to ‘./var’: Permission denied
ashwinisanth:~/workspace $ mv project /* ./
mv: ‘project’ and ‘./project’ are the same file
mv: cannot move ‘/bin’ to ‘./bin’: Permission denied
mv: cannot move ‘/boot’ to ‘./boot’: Permission denied
mv: cannot move ‘/build’ to ‘./build’: Permission denied
mv: cannot move ‘/data’ to ‘./data’: Permission denied
mv: cannot move ‘/dev’ to ‘./dev’: Permission denied
mv: cannot move ‘/etc’ to ‘./etc’: Permission denied
mv: cannot move ‘/home’ to a subdirectory of itself, ‘./home’
mv: cannot move ‘/lib’ to ‘./lib’: Permission denied
mv: cannot move ‘/lib64’ to ‘./lib64’: Permission denied
mv: cannot move ‘/lost+found’ to ‘./lost+found’: Permission denied
mv: cannot move ‘/media’ to ‘./media’: Permission denied
mv: cannot move ‘/mnt’ to ‘./mnt’: Permission denied
mv: cannot move ‘/nix’ to ‘./nix’: Permission denied
mv: cannot move ‘/opt’ to ‘./opt’: Permission denied
mv: cannot move ‘/proc’ to ‘./proc’: Permission denied
mv: cannot move ‘/root’ to ‘./root’: Permission denied
mv: cannot move ‘/run’ to ‘./run’: Permission denied
mv: cannot move ‘/sbin’ to ‘./sbin’: Permission denied
mv: cannot move ‘/srv’ to ‘./srv’: Permission denied
mv: cannot move ‘/sys’ to ‘./sys’: Permission denied
mv: cannot move ‘/tmp’ to ‘./tmp’: Permission denied
mv: cannot move ‘/usr’ to ‘./usr’: Permission denied
mv: cannot move ‘/var’ to ‘./var’: Permission denied.

Please help me in this issue.


#2

Please run it as root using sudo mv project /* ./. The reason it fails is that you don’t have permission to write to those directories, so running as root should solve it.