Linux Basics

28 / 87
Use find command
   

Sometimes you might want to search for a particular file based on various attributes of a file such as size or name etc. The find command comes very handy for such use cases.

For example, to find all the text files in current directory, you can use this command

find . -name '*.txt'