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/ ...
Make the world a better place by sharing knowledge, ideas and anything that you can give that comes from the heart.