1. ls -d 2. find -type d -maxdepth 1 3. ls -F | grep "/$" 4. ls -l | grep "^d" 转载于:https://www.cnblogs.com/0820LL/p/10231746.html