Answers for "list directory"

4

get list of directories bash

for d in */ ; do
    echo "$d"
done
Posted by: Guest on April-16-2020
9

linux list directories

ls -d */
Posted by: Guest on June-15-2020
0

list directory in python

from os import listdir

## Prints the current directory as a list (including file types)
print(os.listdir())
Posted by: Guest on April-23-2020
1

list all files in a directory and subdirectory linux

find . -type f -follow -print
Posted by: Guest on May-02-2020

Browse Popular Code Answers by Language