Skip to content

Instantly share code, notes, and snippets.

@joseadrian
Created January 28, 2014 03:11
Show Gist options
  • Save joseadrian/8661708 to your computer and use it in GitHub Desktop.
Save joseadrian/8661708 to your computer and use it in GitHub Desktop.
List files into a file text

The -R flag drills recursively into sub folders.

The -F flag writes a trailing slash '/' after folders, and a trailing asterisk '*' after executable files.

Source

ls -RF > nameOfTheFile.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment