Problem

You have spent the last two hours creating a report in a file and afterwards you use cat...

You have spent the last two hours creating a report in a file and afterwards you use cat to create a new file. Unfortunately the new file name you used was the same as the name you used for the report, and now your report is gone.What should you do next time to prevent this from happening?

a. Enter the cat -s command before you start.

b. Enter the command, set -o noclobber before you start.

c. Always use the cat -m command when you use cat to create a file, because this command checks to see if the file already exists.

d. After you created the report file you should have used the chmod a-o command to prevent the file from being deleted or overwritten.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search