How to only get file name with Linux ‘find’? September 26, 2022 by Tarik In GNU find you can use -printf parameter for that, e.g.: find /dir1 -type f -printf "%f\n"