Which command will list all files under the current directory with a .cfg extension, and then delete them?

Essential Command Line Tools >>> Which command will list all files under the current directory with a .cfg extension, and then delete them? >>> Linux Tools for Developers

 

Note you could use \; instead of ‘;’ – they both work

===================================

You need the -r option so you can feed a regular expression, not just a string

===================================

This will work, you can use different delimiters, such as / or :

The /g ensures all occurrences on every line are dealt with

===================================

Note the quotation marks

===================================

This will search the whole system and feed the result to ls