answered 2023-04-07 12:13:39 +0000
You can use awk the following way:
ls -all my_directory/* | awk '{print $9}'
This will only print the filename.