Subscribe through Feedburner

Practical tips to help you use Macs, iPhones and iPods

Subscribe by Email · Subscribe to the MacTips feed · Follow MacTips on Twitter. · Follow us on YouTube. · Join MacTips on Facebook.

A Historic Terminal

Wed 05 November 2003

A few fun things to try using the Terminal and the Macs command line interface.

Mac Tip #126/05-Nov-2003
A Historic Terminal

This tip is only for “tenners”.

Your Mac with OS X is really running an operating system which can receive instructions not by dragging and dropping items or pointing and clicking with a mouse but by typing complex strings of apparently meaningless letters, numbers and symbols. This is how computers used to work back in the day.

Imagine how much computers would have caught on with the general public if every time you wanted to see what files are in a folder you had to type:

ls -la

Ugh!

The Terminal is a special bit of software you’ll find in your Utilities Folder which allows you a brief glimpse of this olde worlde stuff.

Geeks can work magic with the Terminal, but ordinary folks such as you and I can just have a little bit of fun.

Start up Terminal and you’ll see a prompt. Mine looks like this:

Last login: Sun Nov 2 21:29:53 on console

Welcome to Darwin!

B5:~ miraz$

To see just a calendar for the current month I type beside miraz$: cal

For a whole year (2003 in this case) type: cal 2003

For a specific month (November 2003 in this case) type: cal 11 2003

Some other dates.

I wonder what happened on 5 November in 1605? Let’s find out. I type this (being very careful with my typing so as to avoid spelling errors):

cat /usr/share/calendar/* | grep `date +"11/05"`

Here’s an explanation of which keys to press:

cat [space] /usr/share/calendar/* [space] [shift \] grep [space] ` [that's the key to the left of 1 on the numbers across the top of the keyboard] date [space] +”[month]/[day]“`

It sounds awful but give it a try. You can also just copy and paste from here. Along with a couple of other lines you’ll find:

11/05 Roy Rogers born, 1912

11/05 Guy Fawkes’ Plot, 1605

Once you’ve had some fun looking up various dates just Quit the Terminal.

Note: I’m no expert using the Terminal. The basis for this Tip can be found at: Paul Bissex’s Blog:

Related Posts

  1. That Sensitive Age Eudora Tip #202/22-Oct-2003 That Sensitive Age I have many mailboxes...
  2. iCal: edit an appointment How to edit appointments in your iCal calendars. ...
  3. Date and Time How to set the date and time on your Mac....
  4. Pattern Replace (1) Regular Expressions (grep) let you do find and replace by...
  5. How to customise Date and Time on your Mac Are you unhappy with how the Date and Time appear...

Hey. Welcome back. Sign up for free MacTips updates via RSS or email, follow MacTips on Twitter and check our YouTube channel. Check for more Tips on this topic. We love your Comments too.

Leave a Comment