ls only files code example
Example 1: linux list files onlr
ls -p | grep -v /
Example 2: ls with only file name
# List ONLY file names of current folder (non recursive)
ls -A1
Example 3: ls with only file name
# List all files within the current folder (not recursive)
ls -A1