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)

Computer Science & Information Technology

You might also like to view...

Suppose an ArrayList list contains {"red", "red", "green"}. What is the list after the following code?

``` String element = "red"; for (int i = list.size() - 1; i >= 0; i--) if (list.get(i).equals(element)) list.remove(element); ``` a. {"red", "red", "green"} b. {"red", "green"} c. {"green"} d. {}

Computer Science & Information Technology

Access includes a ________ to make it easier to find objects in a larger database

A) Navigation Pane B) Navigation bar C) Search box D) Help window

Computer Science & Information Technology

Calculate the theoretical maximum capacity of a single?layer Blu?ray disk assuming that a single laser spot can burn a 1 or 0 and that the wavelength of the laser is 405 nm, the numerical aperture of the lens 0.85, and the inner and outer tracks have radii of 23 mm and 59 mm, respectively.

What will be an ideal response?

Computer Science & Information Technology

List three different categories of utility tools support agents find useful in hardware support.

What will be an ideal response?

Computer Science & Information Technology