The tip about using echo is great, and I've used it many times. Lately though, I've started using printf because it can help me see some weird filenames, and also helps with long filenames.

One could use `ls` too, or rather `ls -d` to not expand any directories listed, and it might be the instinctive thing to do but in the case of a lot of files, actually just printing the parameters is faster, because regardless whether you just want to see the file names, `ls` also inspects each and every one of the files to figure out how to e.g. color it.

Now, here's what I do with printf:

# Show all the names with single quotes around them.

$ printf "'%s' " /some/directory/and/wild*card; echo

# Show all the names on separate lines.

$ printf "%s\n" /gnu/store/*-theprogram-2.0*

The latter one is what I literally do when looking for things in my Guix or Nix store, because those file names are all so long, and it's helpful to get one per line.
