Practical tips help you use Apple stuff   Subscribe through Feedburner

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

Looking for something in particular? A simple search is your best bet:

Or try the Categories and Tags page.

A Historic Terminal

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:

See more from: Finder,Mac Tips

It's great to see you visiting again! Have you tried the free MacTips updates via RSS or email, MacTips on Twitter and our YouTube channel? There may be more Tips on this topic. We'd love your Comments too.

Tell us what you think.
Note: there may be a delay before your comment appears. I now approve all comments from new visitors, in an attempt to keep spam at bay.

Add your Comment

click here