Why does the unix folder list take such a long command?

What can I do to apply ls -l | grep ^d

to lsf

? I'm scared of a mess of files and folders and trying to just see the folders to make it easier cd ...

around places.

+3


source to share


2 answers


It should do it well sir

alias lsf='ls -l | grep ^d'

      



add permanent, do this

echo "alias lsf='ls -l | grep ^d'" >> ~/.bash_profile

      

+3


source


If you are using a decent wrapper (i.e. ZSH ) you can do



ls -d *(/)

      

+1


source







All Articles