Working with root privileges, you are planning to delete some files but want to make sure that the wildcard expression you use is correct. Suggest two ways you could make sure you delete the correct files.
What will be an ideal response?
a. Give the rm command with the –i flag and confirm each deletion.
b. Before giving the command, replace rm with echo on the command line.
The shell expands the wildcards, and you can see which files will be
deleted.
c. Redirect the output of ls with the wildcard expression to put the names
of the files you want to delete in a file (named, for example, deleteme).
When you have verified the filenames listed in the file are correct, enter
the following command:
# rm $(cat deleteme)
You might also like to view...
Your engineering team tells you that you can have 2 MB of on-chip cache total. You have a choice of making it one big L1 cache, two level L1 and L2 caches, split I- and D-caches at several levels, etc. What would be your choice and why? Consider hit time, miss rate, associativity, and pipeline structure in making your design decisions. For this problem, it is sufficient if you give qualitative explanation for your design decisions.
What will be an ideal response?
Which of the following is a LinkLabel capable of opening?
a) a web page b) an executable c) a directory d) All of the above.