38.0k views
4 votes
The true or false questions.

The command: find -empty -type f -exec rm { } \; will remove all empty regular files, starting from the current directory

1 Answer

3 votes

Answer:

true

Step-by-step explanation:

The command:

find -empty -type f -exec rm { } \;

carries out the following steps.

1) Finds all the empty files in the current directory and its subdirectories.

2) For each of the identified files, it executes the command specified as the parameter to exec option,namely, rm <filename>.

So effectively it removes all empty files in the directory tree starting at the current directory.

User David Yee
by
8.3k points