how to List the files and directories in the working directory bash code example Example: get list of directories bash for d in */ ; do echo "$d" done