in terminal it is : #cp file_a file_b
You can use cp command to make a copy of a file. cp <file 1> <file 2> If you want to make a copy of the entire directory then use the recursive option cp -r <dir 1> <dir 2>
copy command ofcource.. from command prompt.. copy <source file path> <filename> <destination file path> say u want to copy ram.txt from c: to d: copy c:\ram.txt d: and press enter..
The cp command does that.
if you are in the directory with the file you want to copy (for example file.txt) cp file.txt / should do it
Using the `cp' command. It works in two modes, `cp source dest' for when you want to change the name of the file and `cp source... destdir/' for when you want to move the file to a different directory while keeping it's name.
Depends on which operating system you are using and whether you want to copy more than one file. In DOS/Windows command prompt "c:\copy xxxx /destination_folder/" if more than one file you can use "c:\copy xxx.* /destination_folder/" Xcopy has more options (verify, copy subdirectories ..) and is used "c:\xcopy xxx* /s /destination_folder/" In Unix/Linux/OSX cp is the command for copying as in "#darkstar$cp -R *.txt /destination_folder/" cp has a lot more option than xcopy but you will need to type either "cp --help" or "man cp" to get the best of cp's actions.
To copy the file from source to target as well as preserve the permissions by writing next to cp '-p'
The easiest way would be: cat file1 > file2
cp - copy a file rm - delete a file mv - rename a file mkdir - create a directory rmdir - remove a directory etc...
Depends on which operating system you are using and whether you want to copy more than one file.In DOS/Windows command prompt "c:\copy xxxx /destination_folder/"if more than one file you can use "c:\copy xxx.* /destination_folder/"Xcopy has more options (verify, copy subdirectories ..) and is used "c:\xcopy xxx* /s /destination_folder/"In Unix/Linux/OSX cp is the command for copyingas in "#darkstar$cp -R *.txt /destination_folder/"cp has a lot more option than xcopy but you will need to type either "cp --help" or "man cp" to get the best of cp's actions.
cp myfile /dev/null if it does not exist it will give you : cp: cannot stat `myfile': No such file or directory