The perfect choice of one-stop service for diversification of architecture.
In second case, ls find file and list them.(*) this is the Filename Expansion from zsh expansion (see man zshexpn).FILENAME GENERATIONIf a word contains an unquoted instance of one of the characters *', .
..The word is replaced with a list of sorted filenames that match the pattern.as you are centos before sudo zsh could not access dir (e.g. file conf ), hence the no match found
centos@ip-10-0-5-4 $ sudo ls -l /var/solr/data/new_core/_default/*
zsh: no matches found: /var/solr/data/new_core/_default/*
centos@ip-10-0-5-4 $ sudo ls -l /var/solr/data/new_core/_default/
total 4
drwxr-xr-x. 3 root root 4096 Mar 28 07:34 conf
·OTHER ANSWER:
centos@ip-10-0-5-4 $ sudo ls -l /var/solr/data/new_core/_default/*
zsh: no matches found: /var/solr/data/new_core/_default/*
centos@ip-10-0-5-4 $ sudo ls -l /var/solr/data/new_core/_default/
total 4
drwxr-xr-x. 3 root root 4096 Mar 28 07:34 conf