adplus-dvertising
frame-decoration

Question

What does the following command do?
cp -u * dir_file

a.

copy all files to directory dir_file

b.

update all files

c.

delete all files

d.

update all files in the current working directory and copy newer ones to directory dir_file

Posted under UNIX

Answer: (d).update all files in the current working directory and copy newer ones to directory dir_file

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What does the following command do? cp -u * dir_file

Similar Questions

Discover Related MCQs

Q. What does -i option do?

Q. To copy multiple files, the last destination file should be a directory.

Q. –n option is used with cp command for what purpose?

Q. We can delete multiple files using single rm command.

Q. To delete all files in a directory we use ______________

Q. Which option is used with rm command for interactive deletion?

Q. Which option performs recursive deletion?

Q. Which one of the following command can delete a directory which is not empty?

Q. If we wish to delete a remove a file forcefully, we can use ____ option with rm command.

Q. Which command is used for removing file named -file.txt?

Q. Which command is used for renaming files?

Q. If the destination file does not exists, then mv command creates it.

Q. What is the exit status of cmp command if both the files are identical?

Q. Which option is used with cmp command to display a detailed list of mismatches?

Q. Which option is used with cmp command to limit the number of bytes to be compared?

Q. How can we skip some initial bytes from both the files to be compared?

Q. –b option is used with cmp command to print the differing bytes in both files.

Q. Which command compares two sorted files line by line?

Q. What will be the command if we want to suppress column 1 and column 2 in the output of comm Command?

Q. For comm command to work properly, files specified should be sorted.