mv /path/to/source /path/to/dest
" Linux How To Move 1 File or All Files To Another Directory "
Syntax:
mv file directory
Real Life Example With Sudo:
sudo mv /home/martin/Downloads/strategies/settings.txt /home/martin/ft_userdata/strategies/
Move All Files From Folder A to Folder B:
sudo mv /home/martin/Downloads/strategies/* /home/martin/ft_userdata/strategies/
This Command Returns The Full Path Of The Current Folder You Are In:
ls | xargs readlink -f
I hope this saved your day :)
mv file dir
how to move a folder/Directory in Linux with files
#sytex
mv /path/to/source /path/to/destination
#example
mv Reports tools/Reports