how to move files to a directory in linux code example
Example 1: linux move file
mv [options] <source-filepath> <destination-filepath>
mv "C:\Users\File_Name.txt" "C:\Users\SubFolder\File_Name.txt"
mv -u "C:\Users\File_Name.txt" "C:\Users\SubFolder\File_Name.txt"
OPTION DESCRIPTION
mv -f force move by overwriting destination file without prompt
mv -i interactive prompt before overwrite
mv -u update - move when source is newer than destination
mv -v verbose - print source and destination files
Example 2: move directory with files linux
how to move a folder/Directory in Linux with files
mv /path/to/source /path/to/destination
mv Reports tools/Reports
Example 3: linux command to move a file to another directory
mv filename directoryname
Example 4: move one foile/folder to another ubuntu
//simple example where site-available is initial folder and site enabled is the folder where we transfer the file 000-default.conf
sudo mv /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-enabled/