0

In Linux ls -w 1 shows list of files in 1 column instead of multi-column. What flag or other command will produce the same result in OS X?

Current output under OS X:

ls: 1: No such file or directory
1

The equivalent of the ls -w 1 command from Linux in OS X is: ls -1

From the man page for ls:

-1 (The numeric digit “one”.) Force output to be one entry per line. This is the default when output is not to a terminal.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .