linux- query files in the specified path folder exists

We often go on to find files in Linux

the Find / -name ' test.py '    # find a file named test.py in the root directory

But with a way to find files to find the folder, then, is finding out

Find / D -name -type -maxdepth. 1 ' test_dictionary '   # -maxdepth represents search depth. -type indicate the type of search.

Find successfully returns the corresponding path

Guess you like

Origin www.cnblogs.com/lutt/p/12037498.html