Tips Linux Explorers   All Things Linux Forum   Great Linux Links   LinuxClues.com   Hometown   Email 



WHAT DAY WAS YESTERDAY ?



Ever lose track of time, puzzled about what day it is, or are just curious what day your birthday will be in 2022 ?
Here are a few nice commands to keep you up to date:


CODE
$ cal

Shows you the current month


CODE
$ cal -3

The same calendar with 3 month display


CODE
$ cal 9 1950

The calender for September 1950


CODE
$ cal -y

The calendar for full year


CODE
$ cal -y 1950

The calendar of the year 1950


CODE
$ date

Current time and date


CODE
$ date -d sun

The date for next Sunday


CODE
$ date --date='Jan 1 2008' +%A

New Years day 2008


CODE
$ TZ=':America/New_York' date

Current time in NY


CODE
$ time <command>

Measure how long a command takes ( + cpu usage )


CODE
$ uptime

Uptime since last boot


CODE
# hwclock --show

Shows time and date the BIOS hardware clock is set


CODE
$ w

The users, when they logged in, and what they are doing



These are just a few of the very nice commands Linux gives you for "free" . . . . . If you want to know what day this text was written, look at the bottom of this post. <g>



Bruno



-- Apr 25 2006 --



Tips Linux Explorers   All Things Linux Forum   Great Linux Links   LinuxClues.com   Hometown   Email