Question
a.
file will not be copied
b.
an error will be produced
c.
destination file will be automatically created
d.
none of the mentioned
Posted under UNIX
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What happens if the destination file specified in cp command does not exist?
Similar Questions
Discover Related MCQs
Q. Which of the following is not an option of cp command?
View solution
Q. What is the correct syntax for copying multiple files with a filename starting as ‘file’ into another file named as ‘directory_one’?
View solution
Q. How can we copy an entire directory under another directory?
View solution
Q. How can we copy a file into our current directory?
View solution
Q. What does the following command do?
cp -u * dir_file
View solution
Q. What does -i option do?
View solution
Q. To copy multiple files, the last destination file should be a directory.
View solution
Q. –n option is used with cp command for what purpose?
View solution
Q. We can delete multiple files using single rm command.
View solution
Q. To delete all files in a directory we use ______________
View solution
Q. Which option is used with rm command for interactive deletion?
View solution
Q. Which option performs recursive deletion?
View solution
Q. Which one of the following command can delete a directory which is not empty?
View solution
Q. If we wish to delete a remove a file forcefully, we can use ____ option with rm command.
View solution
Q. Which command is used for removing file named -file.txt?
View solution
Q. Which command is used for renaming files?
View solution
Q. If the destination file does not exists, then mv command creates it.
View solution
Q. What is the exit status of cmp command if both the files are identical?
View solution
Q. Which option is used with cmp command to display a detailed list of mismatches?
View solution
Q. Which option is used with cmp command to limit the number of bytes to be compared?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond UNIX? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!