move files from directory to another linux code example

Example 1: move files with in bash

mv path/to/src  to/path/destination

Example 2: 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 3: how to move file from one directory to another in linux

mv file1 /tmp

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/

Tags:

Misc Example