What is cp command used for in Linux?
Experience Level: Junior
Tags: Linux
Answer
The cp command is used for copying files and directories to another location. To copy a file, specify “cp” followed by the name of a file to copy. Then, state the location at which the new file should appear. The new file does not need to have the same name as the one you are copying.
Related Linux job interview questions
What is mkdir command used for in Linux?
Linux JuniorWhat is mv command used for in Linux?
Linux JuniorWhat is cat command used for in Linux?
Linux JuniorWhat is ls command used for in Linux?
Linux JuniorWhat is cd command used for in Linux?
Linux Junior