I am trying to create an aliases in bash. What I want to do is map ls -la
to ls -la | more
In my .bashrc file this is what I attempted:
alias 'ls -la'='ls -la | more'
However it does not work because (I assume) it has spaces in the alias name. Is there a work around for this?
alias lsm='ls -la | more'