Question
a.
existing file is deleted
b.
new file will be created separately
c.
existing file will be overwritten
d.
an error will be produced
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. If we create a file using cat command with the same filename which already exists in the current directory then,
Similar Questions
Discover Related MCQs
Q. Which symbol is used to append an existing file?
View solution
Q. Which option is used with cat command for displaying non-printable characters?
View solution
Q. Which option is used with the cat command for displaying file with line numbers?
View solution
Q. Which of the following cannot be performed by cat command?
View solution
Q. What does cat file01 file01 file01 display?
View solution
Q. Which files will be displayed by the following command:
cat *file*
View solution
Q. Which command is used to create empty files?
View solution
Q. Which option is used with touch command which forces the command not to create file, if it does not exists.
View solution
Q. Which one of the following commands is incorrect?
View solution
Q. What happens if the destination file specified in cp command does not exist?
View solution
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
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!