For example I want to list every file in var/log, how do I go about doing this? I've tried searching for answers but couldn't find anything on this.
Asked
Active
Viewed 12 times
0
-
See: [Looping through all files in a directory](https://stackoverflow.com/q/8512462/3776858) – Cyrus May 12 '22 at 22:51
-
`for file in /var/log/*; do ...; done` – Barmar May 12 '22 at 23:07