The CAT command can be used with the LS command to to create a file that will have the contents of a directory in it. To do this, type:
"ls -1 | cat > new.txt". Command: Definition: ls This will list the contents of the directory. -1 This tells the ls command to output to a single row. | This is a pipe-bar and is used to change the direction of data flow cat > new.txt This adds the output to a new file called new.txt