[command-line] What is the command for cut copy paste a file from one directory to other directory

Can any one please help what is the command for cut copy and paste one file from one directory to other directory. I want do above task by using Command from command prompt.

I know I can do this by using mouse but I am learning command prompt that's why I want to know.

This question is related to command-line command

The answer is


mv in unix-ish systems, move in dos/windows.

e.g.

C:\> move c:\users\you\somefile.txt   c:\temp\newlocation.txt

and

$ mv /home/you/somefile.txt /tmp/newlocation.txt

use the xclip which is command line interface to X selections

install

apt-get install xclip

usage

echo "test xclip " > /tmp/test.xclip
xclip -i < /tmp/test.xclip
xclip -o > /tmp/test.xclip.out

cat /tmp/test.xclip.out   # "test xclip"

enjoy.


E:>move "blogger code.txt" d:/"blogger code.txt"

    1 file(s) moved.

"blogger code.txt" is a file name

The file move from E: drive to D: drive