How do I extend the width of output in linux Terminal using Putty

Hi, I am using Putty to connect to Linux OS. I would like to know how can I change the column width so that more characters show up  on each line. For example when I run a command df -h the lines are wrapped because they do not fit into the terminal window?

I tried changing some opitons in Putty but it did not work, this must be something on the host profile.

Thank You
TurbowyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

deepak_iqCommented:
What is the current font size?
Try:
Windows-->Appearance-->Font Settings-->Change-->Here you can set the size (start with 8 and proceed as required)
Hopefully this should work.
Also,you might not be maximising putty window.
Secondly,host profile has nothing to do with putty settings.
If problem persists,send me a screen shot,but hopefully that won't be reqd.
0
TurbowyAuthor Commented:
None of the above recomendations worked. I belive the change has to be made somewhere on the linux host. Like the bash profile etc... but I am not sure. I have attached the screen shot of the issue.
terminal.JPG
0
deepak_iqCommented:
Hi,
The above output is not an error of any sort neither it is putty's fault.
It is the standard output for df -h or df -kh or simply df in case when LVM is implemented in the linux system.
You will find exactly the same output as above even through the system console i.e. while accessing the server directly.
In case of ext3 file systems,the standard output will be the one you were expecting i.e. in one line.
It is due to the above output that sometimes if you are trying to run a script for grep'ing a particular file system when LVM is implemented,you have to think a lot as it is not straightforward to grep any particular column,parameter in the above output.
Try to see the output of any other command and you will find that it is coming in a straight line as you are expecting.
0
deepak_iqCommented:
ok,if you want you can give:
#df -P
And the output will be the one you are expecting.
The output will be similar as below:
$ df -P
Filesystem         1024-blocks      Used Available Capacity Mounted on

In the above, simply divide the values by 1024 to get the value in MB's and further by 1024 to get the values in GB.

i.e. if Used value is : 16513960
it becomes : 16513960/1024/1024
15 GB
And so does others.

I hope this is what you were looking for.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
deepak_iqCommented:
Hi,

You can directly use :

$df -PH
$df -Ph

For human-readable values.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.