Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)
I want to list only directories in the specified path (ls doesn't have such an option). Also, can this be done with the single line command?

1 Answer

0 votes
by (36.8k points)

Try this ls -d */ to list directories within a current directory

Want to be a Linux expert? Come and join this Linux course

Do check out the video below

 

Related questions

0 votes
1 answer
asked Dec 1, 2020 in Linux by blackindya (18.4k points)
0 votes
1 answer
0 votes
1 answer
asked Dec 25, 2020 in Linux by blackindya (18.4k points)
0 votes
1 answer

Browse Categories

...