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:

  • nslookup   nslookup Query Internet name servers Syntax: nslookup nslookup host-to-find nslookup server interactive mode: nslookup -server nslookup [-options] [host-to-find ] … Read More
  • hostname   hostname Print or set system name SYNTAX $ hostname With no arguments, `hostname' prints the name of the current host system. With one argument, it sets the current host name to the specified str… Read More
  • Vim Editor Commands Vim ?? What's that ??   Vim is an editor to create or edit a text file.   There are three modes in vim. Insert mode - Adding text Command mode - Modifying text Last line mode - Save & quit Inse… Read More
  • head   head command example Output the first part of files, prints the first part (10 lines by default) of each file. SYNTAX head [options]... [file]... Examples Extract the first 85 lines from a file… Read More
  • jobs   jobs command example Print currently running jobs and their status. Syntax jobs [OPTIONS] [PID] Options: -c --command Print the command name for each process in jobs -g --group Only… Read More

0 comments:

Post a Comment