Easter eggs: the factor command

Here, the tutor is happy to report, Easter comes early.

An easter egg is a feature not reported. To become aware of it, the user must either stumble upon it, or else find out from research.

Reading about Linux terminal commands, I’ve recently become aware of the factor command. For example,

factor 24

will yield its prime factorization as follows:

24: 2 2 2 3

(Of course, 24=2x2x2x3.)

The command works identically from the Windows command prompt, even though when you type help, the factor command is absent from the list.

Neat, huh?

Source:

McGrath, Mike. Linux in easy steps. Southam: Computer Step, 2008.

Wikipedia (easter egg)

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Tagged with: , , , ,

Leave a Reply