Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have two linux machines that I'm running DF on but the format between them is different. On the older one (bottom) it's nice and neat. On the newer one, it's...not. Is there a setting to fix this?
It's the size of the screen that you're using between the two:
stretch xterm to 100 columns wide: you'll see the lovely display at the bottom of your original posting.
shrink your xterm window to 50 columns wide, you'll see the posting that you have at the top.
examine/set the shell variable $COLUMNS to see what you've got, and run "df -k" between each, and examine the output.
resize your xterm windows to, oh say, 125 columns (check with "echo $COLUMNS" from the command line).
Then run your command, and it's probably very nice like the bottom of your question/posting.
resize your xterm window to, oh say, 50 columns (check with "echo $COLUMNS" from the command line).
Then run your commands, and the output is probably very much like the top part of your question/posting.
The difference then, is just the size of the terminal, and whether or not the "df" command needs to wrap the output because it won't fit on a single line.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.