command line move directory code example

Example 1: how to move a directory in linux

mv /path/to/source /path/to/dest

Example 2: command line move file

mv file.txt ~/Desktop/Folder

Example 3: cmd move directory to another directory

move directory newDirectoryPath

Example 4: move to folder in command line windows

# move to a directory:
cd myFolder

# move out of a directory
cd ..

# move to another hard disk
# in this example i want to move to drive F, just type:
f:
# and hit enter