ระบบลินุกซ์รายชื่อไดเรกทอรี
ls -d */
รายการไดเรกทอรีเดียว
# 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"
ได้รายชื่อของไดเรกทอรีตบ
for d in */ ; do
echo "$d"
done
รายการแฟ้มทุกแฟ้มในไดเรกทอรีและ subdirectory ลินุกซ์
find . -type f -follow -print