How to list all files and folders recursively using terminal (mac OSX)
List all files, first level folders, and their contentsls * -r
List all first-level subdirectories and files
file */*
Save file list to text
file */* *>> ../files.txt
file */* -r *>> ../files-recursive.txt
Get everything
find . -type f
Save everything to file*
find . -type f > ../files-all.txt
List contents of directory
ls -m1 *>> file-list.txt
Outputs this:
./GOPR8425.JPG
./GOPR8430.MP4
./GOPR8431.MP4
./GOPR8434.JPG
./GOPR8452.MP4
./GOPR8453.MP4
./GOPR8454.MP4
./GOPR8456.JPG
./GOPR8457.JPG
./GOPR8459.MP4
./GOPR8460.JPG
No comments :
Post a Comment