What is the command for cut copy paste a file from one directory to other directory

22

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 tagged with command-line command

~ Asked on 2012-01-13 04:23:05

The Best Answer is


43

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

~ Answered on 2012-01-13 04:26:40


1

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.

~ Answered on 2014-04-25 06:40:24


Most Viewed Questions: