Bash Tips – How To cd and ls in one command

4 Responses

  1. Jalal says:

    Hi,
    Very Useful function(cdls)
    Thanks a lot

  2. Lucien van Lint says:

    Most (all?) shells accept ‘;’ as seperation between commands
    bash$ cd ~; ls

  3. zen says:

    this is not a single command – its 2 commands seperated by the AND operator

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.