shell - How do I list one filename per output line in Linux? -


i'm using ls -a command file names in directory, output in single line.

like this:. .. .bash_history .ssh updator_error_log.txt

is there built-in alternative filenames, each on new line, this:

.   ..   .bash_history   .ssh   updator_error_log.txt 

use man ls see if ls supports -1 option (that "one" digit, not lowercase letter "l" - @slashmais), e.g.

http://docs.oracle.com/cd/e19082-01/819-2239/6n4hsf6oc/index.html

...

-1

   prints 1 entry per line of output. 

gnu/linux's ls support it, use:

ls -1a 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -