Stretchwickster
Programmer
I'm trying to display all the entries in my home directory that are directories rather than files. I've tried using ls -d as indicated in the man pages for ls but this just gives me a dot as output. Can anyone help?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
alias -x lsd='ls -l | grep ^d'
dir () {
ls -l $1 | awk '{ if (substr($1,1,1)=="d") {print}}'
}