linux list directories
ls -d */
list only directories
# List directories under the current working directory.
ls -l | grep "^d"
# List directories under the current working directory and
# include hidden folders
ls -la | grep "^d"
get list of directories bash
for d in */ ; do
echo "$d"
done
list all files in a directory and subdirectory linux
find . -type f -follow -print