move folder to another folder terminal code example
Example 1: ubuntu move folder to another directory
sudo mv /root/folder1 /home/folder2/
Example 2: how to move file in the command line
% mv ~/Downloads/MyFile.txt ~/Documents/Work/MyFile.txt
sudo mv /root/folder1 /home/folder2/
% mv ~/Downloads/MyFile.txt ~/Documents/Work/MyFile.txt