CentOS only view folders in several ways

Directory structure:

Methods:
Method 1: ls -d will highlight a folder

Method 2: if not, then even lower -maxdepth parameters are also listed subdirectories

Method 3: Use linux Pipe command, grep lookin ‘/ $’ / at the end that is the directory

Method 4: This method is also easy to remember, -l is a full list of attributes, like drwxr-xr-x … Thus, if the directory will be a d.