" 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
mv myfolder/* . #move files one folder up
mv file1 /tmp
// Move to the directory that the file you want to move is using the cd command.
// Then open a terminal Ctrl+Alt+T, and run:
mv myFile.itsExtention /theDirectoryToMoveInto