Creating a list of files on MacBook Air
I'd like to be able to create lists of files from folders but can't work out how to do it.
On my old Windows PC I'd open a Command prompt and run a command to list all the files in a folder and redirect the output to a text file, e.g. the following command would list all the files in the directory with just the file names ( the /b option gives 'bare' file names only and >file list.txt puts the list into a text file called file list.txt).
dir /b > filelist.txt
I can't find anything in Terminal commands that would replicate this
MacBook Air 13″, macOS 12.6