mv command in linux code example

Example 1: move command in linux

mv filename dirname

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 in directory in linux

mv file dir

Example 4: move command in linux

move command : mv filename dirname
remove command : rm -r filename
copy command : cp filename dirname
zip command : zip -r filename.zip foldername
unzip command : unzip filename.zip -d dirname

Example 5: mv linux command

mv file1.txt file.2.txt file3.txt folder