• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1172
  • Last Modified:

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
  • 4
1 Solution
What is the current font size?
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.
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.
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.
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.

You can directly use :

$df -PH
$df -Ph

For human-readable values.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now