command to move file from one directory to another code example

Example 1: move directory with files linux

how to move a folder/Directory in Linux with files

#sytex
mv /path/to/source /path/to/destination

#example
mv Reports tools/Reports

Example 2: how to move file from one directory to another in linux

mv file1 /tmp

Example 3: 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/