LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-26-2015, 01:03 PM   #1
FiddleStickz
LQ Newbie
 
Registered: Aug 2014
Posts: 6

Rep: Reputation: Disabled
DF Format


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?

Kernel: 2.6.32-504.el6.x86_64

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-root
2.0G 997M 885M 53% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/sda1 477M 76M 376M 17% /boot
/dev/mapper/VolGroup00-home
1.1G 7.4M 1.1G 1% /home
/dev/mapper/VolGroup00-opt
4.9G 3.3M 4.6G 1% /opt
/dev/mapper/VolGroup00-tmp
5.0G 4.6M 4.7G 1% /tmp
/dev/mapper/VolGroup00-usr
2.9G 1.2G 1.7G 41% /usr
/dev/mapper/VolGroup00-var
5.0G 318M 4.4G 7% /var
/dev/mapper/VolGroup00-var.log
2.0G 39M 1.9G 3% /var/log
/dev/mapper/VolGroup00-var.log.audit
992M 263M 679M 28% /var/log/audit

Kernel: 2.6.32-431.el6.x86_64

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-root 1008M 347M 610M 37% /
tmpfs 939M 0 939M 0% /dev/shm
/dev/sda1 485M 55M 405M 12% /boot
/dev/mapper/VolGroup00-home 1.1G 802M 257M 76% /home
/dev/mapper/VolGroup00-opt 3.0G 630M 2.2G 23% /opt
/dev/mapper/VolGroup00-tmp 5.0G 1.4G 3.4G 29% /tmp
/dev/mapper/VolGroup00-usr 3.0G 1.3G 1.6G 44% /usr
/dev/mapper/VolGroup00-var 504M 250M 230M 53% /var
/dev/mapper/VolGroup00-var.log 1008M 408M 549M 43% /var/log
/dev/mapper/VolGroup00-var.log.audit 504M 276M 203M 58% /var/log/audit
 
Old 03-26-2015, 06:06 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Check alias entries - possibly set for posix.

Last edited by syg00; 03-26-2015 at 06:08 PM.
 
Old 04-08-2015, 04:05 PM   #3
Lnthink
Member
 
Registered: May 2010
Location: Lafayette, LA
Distribution: Ubuntu, RH, Fedora
Posts: 44

Rep: Reputation: 11
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.
 
Old 04-08-2015, 04:08 PM   #4
Lnthink
Member
 
Registered: May 2010
Location: Lafayette, LA
Distribution: Ubuntu, RH, Fedora
Posts: 44

Rep: Reputation: 11
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SAN volume : Partition & format or direct format rrmavani Linux - Server 1 03-07-2013 02:04 AM
[SOLVED] can't debug with gdb: not in executable format: File format not recognized (squeeze) oddiofile Debian 1 08-24-2010 03:21 AM
Best video format for YouTube upload and can Recordmydesktop output that format? linus72 Linux - Software 6 12-21-2009 03:53 PM
[SOLVED] Simple Linux script to convert datetime format to UTC format shayno90 Linux - Newbie 10 10-09-2009 08:19 AM
Format Problems Saving Star Office Docs in Word Format kkempter Linux - Software 4 08-27-2003 04:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration