LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 02-27-2005, 12:08 PM   #1
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

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

Rep: Reputation: 31
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, 06:13 PM   #3
Basslord1124
Member
 
Registered: Jun 2004
Location: Ashland, KY
Distribution: Debian, Puppy/Slacko
Posts: 351

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


Reply


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 08:43 AM
Formatting output of ls doodar Linux - Newbie 29 07-29-2004 02:25 PM
Bash Select Function: Formatting Output mooreted Linux - General 2 03-28-2004 07:26 AM
Linux CLI app similar to Mailwasher for Windows? wenberg Linux - Software 7 02-22-2004 09:17 AM
need hlp formatting output from ls test* Evan P. Programming 1 11-06-2003 09:40 PM


All times are GMT -5. The time now is 11:44 AM.

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