terminal search files by text that the file names contain Let's say there a file called "abc_deh.xyz", what command do i use to find the location of that file in mac terminal by using solely the search term "deh"?
So, basically, I am asking how to search for a file by text contained in its name. I need to find files that I forgot the whole name, that would be more helpful.
sudo find / -type f -name "*deh*"


if you want to search directories too then remove the -type f.  You can also try:
    sudo locate deh

Should your locate database not be created (or up to date), there is a chance you have that file on the filesystem, but it's not been stored yet. Rather than run a single find command above, building the locate.db database might be a better plan going forward.