LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CLI....ls (or similar command)...formatting output (https://www.linuxquestions.org/questions/linux-newbie-8/cli-ls-or-similar-command-formatting-output-295499/)

Basslord1124 02-27-2005 11:08 AM

CLI....ls (or similar command)...formatting output
 
In command line, say for instance I want to see a listing of all files and folders of a certain directory. It outputs and is obviously alphabetized...say for instance I wanted to see all the output to be formatted on the screen regardless how big the listing may be. I want the output put into columns (rather than just 1) so I can see a listing of all files and folders. How would I do this? I went through the ls command with its different options but can't pinpoint how to do it. Any ideas?

Optimistic 02-27-2005 12:26 PM

I'm not sure exactly what you want. Do you want ls to print all of the contents of a directory on a single screen regarless of how many items are in the directory? Don't think you'll be able to do that---just imagine a directory with 1 million items.

You could do a "ls -s | more" and then hit the space bar to cycle through screens.

Basslord1124 02-27-2005 05:13 PM

Basically that's what I was shooting for....I know a million is pretty far fetched...just thought there may be some way to display a couple hundred items decently.


All times are GMT -5. The time now is 12:29 AM.