Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)

I wanted to know a command to delete all my files with this specific extension in the given folder. Both, for windows and mac.

1 Answer

0 votes
by (36.8k points)
edited by

Delete all your files with the extension .tmp in current folder:

On Windows:

del *.tmp

On Mac:

rm -rf ./*.tmp

Delete all your files with the extension .tmp in current folder

On Windows:

del /s *.tmp

On Mac:

find . -name '*.tmp' -delete

Want to be a Linux expert? Come and join this Linux course

Do check out the video below

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...