Here is an example of getting a list of files starting with maillog within a directory:
-rw-------. 1 root root 37M 2023-01-05 06:04:40 PM maillog -rw-------. 1 root root 51M 2022-12-11 03:32:04 AM maillog-20221211 -rw-------. 1 root root 47M 2022-12-18 03:01:21 AM maillog-20221218 -rw-------. 1 root root 56M 2022-12-25 03:02:19 AM maillog-20221225 -rw-------. 1 root root 53M 2023-01-01 03:25:31 AM maillog-20230101
Here is another example of getting the list of all the files within a directory:
total 34M -rw-------. 1 root root 1.7M 2023-01-05 06:34:55 PM audit.log -r--------. 1 root root 8.1M 2023-01-05 05:27:40 AM audit.log.1 -r--------. 1 root root 8.1M 2023-01-03 06:18:55 AM audit.log.2 -r--------. 1 root root 8.1M 2022-12-31 02:57:47 PM audit.log.3 -r--------. 1 root root 8.1M 2022-12-28 11:32:00 PM audit.log.4