find(1) /root/test -maxdepth 1 -print0
search for files in a directory hierarchy
find [-H] [-L] [-P] [-D debugopts] [-Olevel] [path...] [expression]
-maxdepth levels
       Descend  at  most  levels  (a  non-negative  integer) levels of directories below the command line
       arguments.  -maxdepth 0
        means only apply the tests and actions to the command line arguments.
-print0
       True;  print  the  full file name on the standard output, followed by a null character (instead of
       the newline character that -print uses).  This allows file names that contain  newlines  or  other
       types  of  white space to be correctly interpreted by programs that process the find output.  This
       option corresponds to the -0 option of xargs.
source manpages: find