Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-27-2005, 11:08 AM   #1
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Rep: Reputation: 51 (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?
Old 02-27-2005, 12:26 PM   #2
Registered: Jun 2004
Location: Germany
Distribution: Debian (testing)
Posts: 276

Rep: Reputation: 33
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.
Old 02-27-2005, 05:13 PM   #3
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Original Poster
Rep: Reputation: 51
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cli: command & domtar Linux - General 1 02-27-2005 07:43 AM
Formatting output of ls doodar Linux - Newbie 29 07-29-2004 01:25 PM
Bash Select Function: Formatting Output mooreted Linux - General 2 03-28-2004 06:26 AM
Linux CLI app similar to Mailwasher for Windows? wenberg Linux - Software 7 02-22-2004 08:17 AM
need hlp formatting output from ls test* Evan P. Programming 1 11-06-2003 08:40 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration