I aliased ll to ls -alh. Is there an option to cancel the -h temporarily, so I can do ll -? instead of ls -al?


Adding --block-size=1 should do what you are looking for if your ls supports it, although just typing ls -al is probably easier...

| improve this answer | |

Try using /bin/ls or /usr/bin/ls. That would get rid of all the flags altogether. So you probably wanted this:

/bin/ls -al
| improve this answer | |

Why not unalias ll and write a script called ll. It could look something like


if [ $1 ]; then
     ls -al
     ls -alh

ll - would result in a ls -al and with the - it would be a ls -alh.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.