Difference between pages "Df" and "Date"

From Linuxintro
(Difference between pages)
imported>ThorstenStaerk
m
 
imported>ThorstenStaerk
(New page: date is a command to show or set the current system date and time. Examples: * show the date date Fri Apr 17 13:21:55 EDT 2009 * set the date; in this example to april-20, 2009 ...)
 
Line 1: Line 1:
The [[command]] [[df]] allows you to see how much disk space is left in your system:
+
[[date]] is a [[command]] to show or set the current system date and time.
  
'''Example:'''
+
Examples:
tweedleburg:~ # df -h
+
* show the date
  Filesystem            Size  Used Avail Use% Mounted on
+
  date
  /dev/sda1            917G  350G  521G  41% /
+
  Fri Apr 17 13:21:55 EDT 2009
udev                  2.0G  304K  2.0G  1% /dev
+
* set the date; in this example to april-20, 2009
/dev/sdb2            294G  167G  112G  60% /mnt/sdb2
+
sudo date -s 20090420
Looking at the above, "-h" means "human-readable". 41% of your hard disk at / is in use, and 60% of your hard disk at /mnt/sdb2.
 
 
 
= See also =
 
* [http://www.manpagez.com/man/1/df/ df man page]
 
 
 
[[Category:Command]]
 

Revision as of 14:35, 20 April 2009

date is a command to show or set the current system date and time.

Examples:

  • show the date
date
Fri Apr 17 13:21:55 EDT 2009
  • set the date; in this example to april-20, 2009
sudo date -s 20090420