Computers Magic Tricks

Watu uwa mnazusha mambo wakati majibu yake yapo. kila kitu kina jibu na jibu la kwanza ni hili:
It is the legacy of MS-DOS. "Con" stands for "Console", just like "prn" stands for "printer".

If you're in DOS console and type:
echo "Hello, world" > example.txt

A text file with a single line (hello, world) called "example.txt" is created.

But if you type:
echo "Hello, world" > con

The system re-directs it to the console, i.e., the standard output, i.e., the screen.

So "CON" is a reserved keyword for designing standard input/output devices (keyboard/screen) in console mode. You can't use a reserved keyword to name a file or folder.

There are some "file" names that are reserved for devices.
You might have heard of COM1 (for Comm Port 1), LPT1 (For Line Printer 1) or PRN (for Printer)?
Well, there's also COM2, CON (for console) and NUL (for Null).
It's a legacy of MS-DOS that you can still use in the Command Prompt
The word "CON" is one of many special words that is inherent to the underlying operating system. It's short for "Console" meaning your screen and is considered an output device (usually). It can actually be used as an input device, too, using the commandline 'copy con' command. Since it's special, and reserved for an input/output device, the OS doesn't allow you to create anything else that it would have to recognize as 'con'. If you have to create a file
you have to type in dos prompt :Copy con < file name>

Na jibu la pili ni hili sababu ni hii

Its used to test word documents, as filler text and also to test fonts.

The first number is the amount of lines, and the second the amount of times the sentence is printed per line.

The sentence "The quick brown fox jumps over the lazy dog" is a sentence that contains all 26 letters of the roman alphabet. As such, it's a convenient test phrase when testing things like fonts and markup.

It was programmed in there by Microsoft for test text. Its similar to a "macro".

Hivyo basi acheni kuja na kamba kwamba hata microsoft wenyewe hawana jibu kuhusu haya mambo. Na si kila kitu kitu anakijua bilgates, bilgates kama Bakheresa, huwezi sema Bakheresa anajua kila bidhaa yake inavyotengenezwa, Utofauti wa Bakheresa na Gates ni kwamba Gates yeye programmer pia lakini si kila kitu kina mkono wake ndiyo maana kaajiri watu wengi sana.
Asante kwa kusaidia kuondoa ganzi ya ufahamu !
 
Back
Top Bottom