Curious 'ls' Issue


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Curious 'ls' Issue
# 1  
Old 07-08-2008
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
# 2  
Old 07-08-2008
ls looks at the width of the window and the width of the filenames and adjusts the number of columns accordingly.
# 3  
Old 07-08-2008
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.
# 4  
Old 07-08-2008
AI - ls is getting it's own will! Smilie
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.
# 5  
Old 07-08-2008
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.
# 6  
Old 07-09-2008
What does stty -a show at both times?
# 7  
Old 07-10-2008
Will check and let you know.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Two curious questions

Hi, I have been thinking about a few things that I have no idea of how to do with a scripting language (awk/sed I know to make proper use of just these 2). 1. Is there a way to have persistent variables? Say a variable that will be held in memory, and which can be accessed by subsequent... (7 Replies)
Discussion started by: jamie_123
7 Replies

2. Shell Programming and Scripting

Curious

I dont get something about sed If i have a text file inside contain a:a:a:a:a sed "s/"$title:$author:$price:$qtyAvailable:$qtySold"/"$Ntitle:$author:$price:$qtyAvailable:$qtySold"/" This work!! but If i have a text file inside contain Tom Tom:La La:Di Di :Do Do :De DE It cannot work... (2 Replies)
Discussion started by: GQiang
2 Replies

3. UNIX for Dummies Questions & Answers

Curious about the -9

I was talking to a coworker and we got into a discussion about the -9. No one knew where the -9 came from and it's not in the man. I suggested that it was like counting to 10 (0-9) and you finally get to the point that that's it, the durned thing is going to die. So how did the -9 come to mean... (3 Replies)
Discussion started by: pflickner
3 Replies

4. Solaris

Curious MPxIO problem

Hello folks, I have a newly installed Solaris 10 system running on a T6320 blade. I have set up LDM with the intent to move an ldom from another blade to this one. So far, so good. I had the SAN folks make the LUNs belonging to the ldom visible to my new blade and I can see them, all 4 paths.... (4 Replies)
Discussion started by: Ranck
4 Replies

5. Shell Programming and Scripting

curious

sorry, just simple question: how can i do this in bash> foreach i( 1 2 3 ) sed 's/Hello/Howdy/g' test$i > test$i.new mv test$i.new test$i end (6 Replies)
Discussion started by: kurosaki
6 Replies

6. Linux

Curious?

To correct most of the problems with this language, How do I remove the DOS and WORD stuff from it? These come from the fact that it was written on those with a Microsoft supplied platform at the writers request. (1 Reply)
Discussion started by: River Freight
1 Replies

7. UNIX for Dummies Questions & Answers

Curious Dummy

I have a website but I do not for the life of me know how to upload using unix based command lines. Can someone send me a good site that has these commands. That and I am curious to know more about command line based interfacing. :D Curious Dummy (1 Reply)
Discussion started by: highway39
1 Replies

8. UNIX for Dummies Questions & Answers

Curious

Dear All I am curious to know, that in a system compromise, when someone has access to a box, does that individual have access to a shell on the system, i.e. the person is logging into the system using telnet or SSH to remotely access the box?? How does this individual/ hacker access the system. ... (2 Replies)
Discussion started by: skotapal
2 Replies

9. UNIX for Dummies Questions & Answers

Just curious, does Unix stand for anything?

If not, where did the name come from? (6 Replies)
Discussion started by: pudad
6 Replies
Login or Register to Ask a Question