find . -maxdepth 1 -type d
dir /b
.Therefore, I would say the proper equivalent is/b Displays a bare list of directories and files, with no additional information.
ls -1
.Sorry for nit-picking, but I think the suggestions do not mimicdir /b
.
According to MS:
Therefore, I would say the proper equivalent isls -1
.
Regards
dir /b
as an example... but many thanks for pointing out the '-1' option to ls()... never come across it before... In fact on rereading this option a redirection of ls
would provide what I had been looking for but never realised.