Search code examples
bashcommand-linecygwin

Why does listing the folders in unix take such a long command?


What can I do to map ls -l | grep ^d to lsf? I am wading around in the mess of files and folders and trying to just see the folders so it's easier to cd ... around to places.


Solution

  • This should do it good sir

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

    to add permanent, do this

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