To list all folders on the root directory, type: ls -d /* Sample Output: /bin /dev /smsbackup /lost+found /mnt /proc /selinux /tmp /boot /etc /lib /media /net /root /srv /usr /cgroup /home /lib64 /misc /opt /sbin /sys /var To list all folders on the current folder, one level depth only; type: [xxx@mx var]$ ls -d */ Sample Output: account/ cvs/ games/ local/ lost+found/ opt/ spool/ yp/ cache/ db/ gdm/ lock/ sms/ preserve/ tmp/ crash/ empty/ lib/ log/ nis/ run/ www/ List all folders and sub folders, 2 level depth or 2 level hierarchy; type: [xxx@mx var]$ ls -d */*/ Sample Output: cache/abrt-di/ lib/misc/ log/ConsoleKit/ run/portreserve/ cache/cups/ lib/mlocate/ log/cups/ run/rhsm/ cache/fontconfig/ lib/net-snmp/ log/sms/ run/saslauthd/ cache/foomat
Make the world a better place by sharing knowledge, ideas and anything that you can give that comes from the heart.