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.
The cp command also copies entire directories into other directories if you specify the -r or -R flags. You can also copy special-device files using the -R flag.
Highlight the files you want to copy. Press the keyboard shortcut Command + C . Move to the location you want to move the files and press Command + V to copy the files.
The syntax is simple, too. Use cp followed by the file you want to copy and the destination where you want it moved. That, of course, assumes that your file is in the same directory you're working out of. You can specify both.
In order to copy a directory on Linux, you have to execute the “cp” command with the “-R” option for recursive and specify the source and destination directories to be copied.
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
apt-get install xclip
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With