2

I'm using ls from GNU core utilities. The manual page only mentions none, auto and always, but I find that tty also works. This option doesn't seem to be used widely, but still it was mentioned here and there. Is it a deprecated alias of auto? If not, what's the difference between tty and auto? When shall I use them respectively?

  • Not sure whether it's on-topic; in my mind it falls into the Using or administering a *nix desktop or server category. – Franklin Yu Apr 1 '17 at 16:05
5

There is no difference.

Looking at the sources:

  • always can be used interchangeably with yes and force
  • never can be used interchangeably with no and none
  • auto can be used interchangeably with tty and if-tty.

They are all GNU-isms. :)

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.