df is a standard Unix computer program used to display the amount of available disk space for filesystems
Questions tagged [df]
60 questions
130
votes
7 answers
How to analyse disk usage in command line linux?
du and df are nice, but I don't know how to filter the data they provide the way I do with SequoiaView. I would like to know which are the largest folders and the largest files in a glance.
Jader Dias
- 15,756
- 60
- 143
- 196
14
votes
1 answer
Why might a partition show up in `mount` but not `df`?
If I compare this
$> sudo mount | grep sdb
/dev/sdb1 on /windows type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sdb2 on /store type ext4 (rw)
with this
$> sudo df -h | grep sdb
/dev/sdb1 94G 59G …
spraff
- 2,106
- 5
- 37
- 58
10
votes
2 answers
Running out of disk space on /home directory?
I have a 200GB HD and have just installed Linux Mint (12 - KDE) as the only OS (I formatted and wiped my previous Windows 7 installation). I am in the process of installing my "sandbox" and because I'm new to Linux am installing all of the stuff…
pnongrata
- 2,782
- 17
- 51
- 82
8
votes
2 answers
why df vs lsblk command have different results?
so this is the situation:
I had this hardDrive of 500GB, on my server and tried to upgrade it to a 2T HardDrive,
after the upgrade result of lsblk has changed while df still returns same results.
df -h:
/dev/xvdf6 493G 472G 0 100%…
nafas
- 519
- 2
- 7
- 17
6
votes
1 answer
How do I change the default for the "df" command in the Unix/Linux Terminal in the tcsh shell?
I am in the Unix/Linux terminal right now and I'm not in any kind of editor such as vi or emacs. Now when I type in the "df" command, I get the amount of disk free space in KILOBYTES. I want to change the default so that when I type in "df" only, I…
user1656014
- 61
- 1
- 1
- 3
5
votes
1 answer
df reported size/used/available discrepancy
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-Backups 425G 377G 27G 94% /Backups
Size = 425G
Used = 377G
Available = 27G
Used + Available = 404G != 425G
Why is used+available different from…
BiFo
5
votes
3 answers
Is it possible to add a thousands comma separator to the output of the Linux "df" command
df command gives me good information, and I love to see it in KB unit. But I need a thousands separator (aka: a comma) every 3 digits because the numbers will be always huge.
ex> df
Filesystem 1K-blocks Used Available Use% Mounted…
drenerd
- 61
- 3
4
votes
0 answers
df reporting weird file usage info
This is on an ubuntu machine running jaunty (9.04). Yesterday there was 30 something gigs free, now df is reporting:
/dev/sda1 9.2G 5.1G 3.7G 59% /
none 966M 264K 965M 1% /dev
none …
Brendan
- 41
- 1
4
votes
1 answer
Not the same output format from `df` in different Linux distributions
In Ubuntu the output of this command
df --exclude={tmpfs,devtmpfs,squashfs,overlay} | sed -e /^Filesystem/d | awk '{print $6 " " $1 " " $3 " " $4 " " $5}'
is:
/ /dev/mapper/dockerVG-rootLV 8110496 40591632 17%
/dockerssd /dev/mapper/ssdVG-ssdLV…
Piduna
- 153
- 4
3
votes
4 answers
Find availble disk space in unix without parsing `df` output
When I type df -k ., I get the following output
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 16512936 8650196 7023932 56% /
What I do is tail the last line and extract fourth field to get it correctly.
But if file…
Niraj Nandane
- 389
- 1
- 3
- 12
3
votes
0 answers
Explaination needed for strange `df` and `du` results
Can someone help me to understand the following output:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 8.0G 7.5G 167M 98% /
udev 7.4G 8.0K 7.4G 1% /dev
tmpfs 3.0G 200K 3.0G 1% /run
none …
smkengr
- 31
- 1
3
votes
1 answer
Is it safe to delete contents of /root/.cache folder to free up space?
I need to free up disk space on my linux server.
I run the df command to check space ad see that I'm using up 100% of disk space.
myserver:/ # df /
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/nvme0n1p3 22775924 21448960 …
Harry Boy
- 131
- 1
- 2
3
votes
1 answer
Parse df output by columns
I'm having difficulty extracting the Filesystem and Mounted on columns from the df ouput.
$df -Hl
Results in
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1 …
Dan
- 31
- 3
2
votes
1 answer
df -h Size - User != Avail
When I run df -h I get the following
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 809G 753G 14G 99% /
But Size - Used is not even close to Avail (809-753 = 56 and it shows 14)
How is that possible? How much space…
Noam
- 181
- 1
- 8
2
votes
0 answers
Raspbian: USB drive mounted and accessible but doesn't show on `df -h`
I have an USB drive connected to my Raspberry Pi running Raspbian. The directories on it are accessible using cd, ls etc. but the drive doesn't show up when running df. It however does show when I run
sudo du -sh /mnt/SYNC
df with various options…
RUrlus
- 21
- 3