Placement of command line options in bash

Posted by Nathan Rambeck on Super User See other posts from Super User or by Nathan Rambeck
Published on 2010-05-09T12:36:52Z Indexed on 2010/05/09 22:00 UTC
Read the original article Hit count: 280

Filed under:
|

I just starting using a Mac and have been frustrated that command line options are required immediately following the command so that this works:

ls -la /usr

but this doesn't:

ls /usr -la

ls: -la: No such file or directory

Is there any way to change this? Or can someone tell me why the placement of options is agnostic on most Linux platforms, but not on Mac?

© Super User or respective owner

Placement of command line options in bash

Posted by Nathan Rambeck on Stack Overflow See other posts from Stack Overflow or by Nathan Rambeck
Published on 2010-05-09T12:36:52Z Indexed on 2010/05/09 12:38 UTC
Read the original article Hit count: 280

Filed under:
|

I just starting using a Mac and have been frustrated that command line options are required immediately following the command so that this works:

ls -la /usr

but this doesn't:

ls /usr -la ls: -la: No such file or directory

Is there any way to change this? Or can someone tell me why the placement of options is agnostic on most Linux platforms, but not on Mac?

© Stack Overflow or respective owner

Related posts about mac

Related posts about bash