linux list directories
ls -d */
bash list files in directory
# Basic syntax: ls /path/to/directory/ # Example usage 1: ls /path/to/directory/ > output_file.txt # Write the files to an output # Example usage 2: ls /path/to/directory/ | grep *.txt > output_file.txt # Write the subset # of files that match the grep search (e.g. end in .txt)
Source: stackoverflow.com
list all files in a directory and subdirectory linux
find . -type f -follow -print
shell list all files in directory
ls /path/to/directory/**/