Questions tagged [df]

df is a standard Unix computer program used to display the amount of available disk space for filesystems

61 questions
143
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
  • 16,236
16
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,458
12
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,982
9
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
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…
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
4
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…
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
2 answers

How to increase the available space of /home directory?

I was given a CentOS 9 Linux distribution server inside a virtual machine to whom I can connect using ssh protocol (from command line). I am running svn checkout command in order to clone a remote repository, whose size is around 10GB, into my…
tail
  • 171
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
4
votes
2 answers

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
  • 141
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
3
votes
3 answers

Folder is empty, but du reports high usage

I have a 115GB partition on my hard disk (output of cgdisk /dev/sda is below): Part. # Size Partition Type Partition Name ---------------------------------------------------------------- 1007.0 KiB free space 1 …
Farzad
  • 175
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
1
2 3 4 5