answersLogoWhite

0


Best Answer

yes.

the syntax for this command is:

cp -options /path/to/fileyouwantcopied /path/to/destination/

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is cp is used to copy a file?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which Linux command is used to copy a file?

in terminal it is : #cp file_a file_b


To make a copy of a file use the command?

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>


Which command is used to create a duplicate cop of a file while leaving the original file intact?

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..


What utility on Linux can be used to copy a file including text and executable program binary files?

The cp command does that.


How do you copy something to the Root directory?

if you are in the directory with the file you want to copy (for example file.txt) cp file.txt / should do it


How do you copy a file in unix?

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.


How do you copy files using ommand prompt?

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.


Option cp -p in unix commands?

To copy the file from source to target as well as preserve the permissions by writing next to cp '-p'


Without using cp command you copy file to another file in unix?

The easiest way would be: cat file1 > file2


What are five unix commands?

cp - copy a file rm - delete a file mv - rename a file mkdir - create a directory rmdir - remove a directory etc...


DOS command to copy multiple files?

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.


Which commands can be used to assure that a file 'myfile' exists?

cp myfile /dev/null if it does not exist it will give you : cp: cannot stat `myfile': No such file or directory