My apologies if this has been asked before. I am using Ubuntu 16.04.3 desktop and would like to be able to output the contents (file names) of a directory into a single text file via terminal/cli.
I think when I used to use DOS, years back, went something like this: dir /w/p > file.txt ..think that was it, but simple and damn handy
Thank you for your time and help with my question