How can I list all the files of one folder but not their folders or subfiles. In other words: How can I list only the files?
ls -p | grep -v /
ls -p lets you show / after the folder name, which acts as a tag for you to remove.