If you want to display only a list of directories, enter the following command on the console.
ls -l | grep '^d'
If you want to show just a list of files, type the following command on the console.
ls -l | grep -v '^d'
sudo yum install gitk