Sample Header Ad - 728x90

Creating an alias for the find command in Linux

1 vote
1 answer
1450 views
I have created the following alias in my .bashrc file: alias find='find . -type f -name' This obviates the need to type . -type f -name every time I do a file search. However, I still have to enclose search strings with '\*...*'. How could I include these in the alias, so that instead of having to type: find '*string*' I could just type, find string
Asked by edman (588 rep)
Jul 27, 2021, 04:57 PM
Last activity: Jun 29, 2025, 06:27 AM