- Forums
- 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. [3045], Last Updated: Sat May 18, 2024
wallpaperama
Fri Dec 26, 2008
1 Comments
3359 Visits
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
https://www.wallpaperama.com/forums/how-list-directories-only-in-linux-shell-command-t6919.html