- Linux Systems
- How Do You List Directories Only In Linux Shell Command
This Page Contains information about How Do You List Directories Only In Linux Shell Command By wallpaperama in category Linux Systems with 1 Replies. , Last Updated: Tue Feb 07, 2023
Fri Dec 26, 2008
if you are a linux user like i am, im the administrator to a linux machine and often i do admin through ssh so if you are wondering what is the command to only show and display directory and its directories but not the files, here is an example..
lets say i have some files and some directories in the /www/web/public directory, so if i only want to display the current directories in /www/web/public i would execute this linux shell command:
ls -d */
hope this helps