how to use ls to only get file names code example
Example 1: ls with only file name
# List ONLY file names of current folder (non recursive)
ls -A1
Example 2: ls with only file name
# List all files within the current folder (not recursive)
ls -A1