Saturday, April 26, 2014

df


df command examples

Displays the file system disk space usage. By default df -k displays output in bytes.

$ df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1             29530400   3233104  24797232  12% /
dev/sda2            120367992  50171596  64082060  44% /home

df -h displays output in human readable form. i.e size will be displayed in GB’s.

linuxcare@rax-laptop:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              29G  3.1G   24G  12% /
/dev/sda2             115G   48G   62G  44% /home


Use -T option to display what type of file system.

linuxcare@rax-laptop:~$ df -T
Filesystem    Type   1K-blocks      Used Available Use% Mounted on

/dev/sda1     ext4    29530400   3233120  24797216  12% / 
/dev/sda2     ext4   120367992  50171596  64082060  44% /home



Related Posts:

  • Linux Booting Process - 6 Steps Linux Booting Process - 6 Steps 1. BIOS §  BIOS stands for Basic Input/Output System §  Performs some system integrity checks (POST-Power On Self Test) §  Searches, loads, and executes … Read More
  • Common Myths Busted - For Anti-Linux Users (Must Read) Introduction When it comes to operating systems people have always hailed Windows and Mac OS X as the two front-runners of the OS battle. However, due to recent efforts of the ever-growing Linux community, this scenario h… Read More
  • User Management in Linux This article will try to cover basics of Linux user management through command line tools. Linux provides 5 different alternatives to choose the accessibility. They are as listed below. Super User or … Read More
  • Group Management in Linux Group Management :   A user can be participated to more than one group at the same time. A user who is member of a group can change to that group without password but a user NOT member can … Read More
  • Introduction & Basic Concepts of Linux What is Linux ? Linux open source operating system, or Linux OS, developed by Linus Torvalds is a freely distributable, cross platform operating system based  on UNIX that can be installed on PCs, la… Read More

0 comments:

Post a Comment