Meniu

Cum vezi cat spatiu pe disk ai utilizat in Linux

1) df - Disk Free - ne arata utilizarea file-system (partitii):

[root@www ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
29G 2.6G 25G 10% /
tmpfs 495M 0 495M 0% /dev/shm
/dev/sda1 477M 159M 293M 36% /boot
[root@www ~]#


Pentru a vedea informatii despre inoduri in loc de block usage:

[root@www ~]$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VolGroup-lv_root
1901280 48571 1852709 3% /
tmpfs 126572 1 126571 1% /dev/shm
/dev/sda1 128016 62 127954 1% /boot


Pentru a vedea tipul partitiei (ext2,ext3,ext4,reiserfs,etc):

[root@www ~]$ df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup-lv_root
ext4 29808508 2724420 25563244 10% /
tmpfs tmpfs 506288 0 506288 0% /dev/shm
/dev/sda1 ext4 487652 162180 299872 36% /boot



2) du - Disk Usage - ne arata utilizarea pe fisiere/directoare:

[root@www ~]$ du -csh /home/vilce
1.8M /home/vilce
1.8M total
[root@www ~]$

-c = total
-s = sumar fisiere/directoare
-h = human readable (dimensiune in M/G/T)

John Doe

Articole publicate de la contributori ce nu detin un cont pe gnulinux.ro. Continutul este verificat sumar, iar raspunderea apartine contributorilor.
  • | 340 articole

Nici un comentariu inca. Fii primul!
  • powered by Verysign