Loading...

Linux move folder content up one level

Linux move folder content up one level

In many cases you unzip something on your server and the result is a new folder with all the files inside it.

You need to use the mv command like this :

mv thefolder/* .

after that remember that the folder is now empty so you will need to remove it.

rmdir thefolder
Is this article helpful?
Share this article

Leave a comment