The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Is CEP Mature? Or a Curious Case of Information Asymmetry iBot Complex Event Processing RSS News 0 06-05-2008 05:20 PM
Curious? River Freight Linux 1 10-07-2007 12:40 PM
Curious Dummy highway39 UNIX for Dummies Questions & Answers 1 08-31-2006 04:22 PM
Curious skotapal UNIX for Dummies Questions & Answers 2 02-28-2003 01:33 PM
Just curious, does Unix stand for anything? pudad UNIX for Dummies Questions & Answers 6 10-17-2002 10:06 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 07-08-2008
Registered User
 

Join Date: Jan 2005
Posts: 212
Curious 'ls' Issue

Hi,

I am seeing a curious issue with 'ls' command.

If I open a telnet session of my Solaris box and give "ls".

The output is in 3 columns.
a b c
d e f
g h i
j k l

However, if I give the same command after a couple of hours in the same window, it goes to 6 columns according to the width of the window.
a b c d e f
g h i j k l

Any ideas?

Thanks
Reply With Quote
Forum Sponsor
  #2  
Old 07-08-2008
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,615
ls looks at the width of the window and the width of the filenames and adjusts the number of columns accordingly.
Reply With Quote
  #3  
Old 07-08-2008
Registered User
 

Join Date: Jan 2005
Posts: 212
I thought of that.

Hence, during the 2 instances i haven't changed anything.
Neither width nor re-sized once.

I didn't even ran any other command in the mean time.
Reply With Quote
  #4  
Old 07-08-2008
Moderator
 

Join Date: Sep 2007
Location: Germany
Posts: 958
AI - ls is getting it's own will!
Are you using always the same ls from /bin or /usr/bin? Not that a coworker is making fun of you and has put a "modified" ls in your path.
Reply With Quote
  #5  
Old 07-08-2008
Registered User
 

Join Date: Jan 2005
Posts: 212
Yup,

And its aliased to "ls -aFC"

Even if i directly use /usr/bin/ls, I get the same result.
Tried with that.

So no positive in pondering over the alias part.
Reply With Quote
  #6  
Old 07-09-2008
jhtrice's Avatar
Registered User
 

Join Date: Jun 2008
Posts: 63
What does stty -a show at both times?
Reply With Quote
  #7  
Old 07-09-2008
Registered User
 

Join Date: Jan 2005
Posts: 212
Will check and let you know.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
solaris

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:21 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0