-   Linux - Newbie (
-   - (or similar command)...formatting output (

Basslord1124 02-27-2005 12:08 PM (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 01: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 06: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 10:07 AM.