Skip to main content

Featured

Space Explorers Book 7: Answers and Explanations

Memunic Space Explorers › Book 7: Memoon and the Search for Another Home › Answers and Explanations Answers and Explanations Habitable means life could live there; inhabited means life does live there. A world can be habitable and empty, as an unoccupied flat has a roof and water but nobody in it. The Moon has almost no air, so water would boil or freeze, and its gravity is only about one-sixth of Earth’s, too weak to keep air. Accept also: no greenhouse blanket, so it swings between very hot and very cold. Venus. It matches Earth in size and roughly in mass, but its thick carbon dioxide air traps heat, making it hot and crushing. “Twin” is only true for size and weight. A dip of 1 per cent means (planet width divided by star width) squared is 0.01, so the ratio is 0.1: the planet is about a tenth as wide as the star. Repeats at the same gap show the planet is going round the star in 12 days, and rule out a one-time event such as a passing object. A planet shines only by reflected l...

Byte by Byte Book 3: Chapter 1 – Files and Folders

Byte by Byte › Book 3: Files, Folders and the Internet › Chapter 1: Files and Folders

Chapter 1: Files and Folders

You will learn: what files and folders are, how folders hold other folders, and what a file's name and extension tell you.

🌟 The Adventure

The family computer flickered purple, the way it always did when Memunic World needed help. Memoon grabbed Noodles, Noodles grabbed nothing (he was a cat), and together they tumbled through the glowing screen.

They landed on soft green grass in front of the most enormous building Memoon had ever seen. Its towers were shaped like stacks of paper, its windows glowed gold, and a sign over the doors read: The Great Library of Memunic: Everything Ever Made Lives Here.

On the steps sat Kachui. He was wearing tiny round spectacles and a shiny brass badge that said CHIEF LIBRARIAN. He was also, very quietly, crying.

"Kachui! What's wrong?" Memoon sat down beside him.

"The Queen made me Chief Librarian last week," Kachui sniffed. "I was so proud. Then last night the Scatter Wind blew through the open windows. Every drawing, every story, every song, every recipe in Memunic World was blown off its shelf. Now everything is in one giant pile. Bop needs his laddoo recipe for tomorrow's feast, and I can't find it. I can't find anything."

They pushed open the doors. Memoon gasped. In the middle of the great hall stood a mountain of scrolls, pages and pictures taller than a house. Empty shelves lined the walls all the way up to the ceiling. Noodles leapt onto the pile and immediately slid down the other side with a crumpled song sheet stuck to his tail.

"Looking through all of this one by one would take a hundred years," said Kachui. "Even for a turtle, that's slow."

Memoon pushed her glasses up her nose. "Then we won't look through it one by one. We'll do what a computer does. We'll make it findable."

Illustration from Byte by Byte Book 3: Chapter 1 – Files and Folders

💡 Learn With Memoon

Every piece of work is a file

When you save something on a computer, it becomes a file. A file is one saved piece of information with a name. Your Paint drawing from Book 2 was a file. A song is a file. A photo is a file. A story you type is a file. A game you install is made of many files.

Files are kept in the computer's storage, which you met in Book 1 as the part that remembers things even when the computer is turned off. A computer can hold hundreds of thousands of files. That is why it needs a way to keep them in order.

Folders keep files organised

A folder is a container that holds files. On the screen, a folder looks like a yellow paper folder. You give each folder a name, and you put files that belong together inside it.

Here is the clever part: a folder can also hold other folders. A folder inside another folder is called a subfolder. You can keep going, with folders inside folders inside folders, as deep as you need.

Think about your school bag. The bag holds a pencil box and some notebooks. The pencil box holds pencils and an eraser. The bag is like a main folder, the pencil box is a subfolder, and the pencils are files.

The folder tree

When you draw folders and their subfolders, the picture branches out like an upside-down tree. Computer people call this a folder tree or folder structure. Here is the kind of tree Memoon planned for the library:

Great Library
├── Stories
│   ├── Adventure
│   └── Funny
├── Recipes
│   ├── Sweets
│   │   └── Laddoo.txt
│   └── Snacks
├── Music
└── Pictures

To find the laddoo recipe, you do not search the whole library. You open Recipes, then Sweets, and there it is. Each step takes you closer. The list of folders you pass through is called the file's path. The path to the laddoo recipe is: Great Library > Recipes > Sweets > Laddoo.txt.

A file's name has two parts

Look closely at Laddoo.txt. It has two parts, joined by a dot:

  • Laddoo is the file name. You choose it. It should tell you what is inside.
  • .txt is the file extension. It tells the computer what kind of file this is, so it knows which app should open it.

You usually do not type the extension yourself. The app adds it when you save. Here are extensions you will meet often:

ExtensionKind of fileUsually opens in
.txtPlain textNotepad
.png or .jpgPicturePhotos or Paint
.docxFormatted documentWord
.pptxPresentationPowerPoint
.mp3Sound or musicMedia Player
.mp4VideoMedia Player
.pdfDocument to read or printA browser or PDF reader

Each kind of file also shows a different icon, the small picture next to its name. With practice, you can tell a picture from a document just by its icon.

Files have a size

Files take up space in storage, just as books take up space on a shelf. File size is measured in bytes. One letter of text takes about one byte. Because files have so many bytes, we use bigger units:

UnitShort formAbout how big
KilobyteKBAbout 1,000 bytes: a short story typed in Notepad
MegabyteMBAbout 1,000 KB: one photo from a phone, or one song
GigabyteGBAbout 1,000 MB: a long film

A picture is much bigger than a typed story with the same number of pages, because a picture stores the colour of every tiny dot on the screen.

Rules for good file and folder names

  1. Say what is inside: Science Project Plants is better than stuff.
  2. Keep it short enough to read at a glance.
  3. Do not use these symbols, because Windows will not allow them: \ / : * ? " < > |
  4. Two files in the same folder cannot have exactly the same name and extension.
  5. Adding a date or a number helps tell versions apart: Poem Draft 1, Poem Draft 2.
Illustration from Byte by Byte Book 3: Chapter 1 – Files and Folders

✍️ Try It Yourself

Activity 1: Spot the extensions (on the computer)

  1. Ask a grown-up to show you a folder with a few different files in it, such as your Pictures folder.
  2. Look at the icons. Can you tell which files are pictures and which are documents?
  3. If you cannot see the extensions, you will learn how to show them in Chapter
  1. For now, just look at the icons.

Activity 2: Draw your own folder tree (unplugged)

  1. Imagine you are making a folder for all your schoolwork.
  2. On paper, draw a main folder called School.
  3. Under it, draw one subfolder for each subject you study, such as English, Maths, Science and Hindi.
  4. Under Science, add two more subfolders: Homework and Projects.
  1. Add three files with good names and extensions. For example: Water Cycle Diagram.png.
  2. Write the path to one of your files, using > between the folders.

Activity 3: Name doctor (unplugged)

These file names are "sick". Rewrite each one so it is healthy, following the five naming rules.

  • abc.txt (it is a list of birthday party guests)
  • my*best*drawing.png
  • new new new final.docx (it is a report about tigers)
  • photo.jpg (it is a photo of your class trip to the zoo)

🎉 Memoon Solves It

"Before we put anything on a shelf," said Memoon, "we plan the tree."

She climbed the library ladder and wrote big signs: STORIES, RECIPES, MUSIC, PICTURES. These were the main folders. Under RECIPES she pinned two smaller signs: SWEETS and SNACKS. Under STORIES: ADVENTURE and FUNNY.

Then the sorting began. Beautine, who loved sorting almost as much as she loved hiding, raced up and down the shelves with armfuls of scrolls. Noodles carried the music sheets, mostly with his teeth. Kachui checked every name.

"This one just says 'thing'," Kachui frowned, holding up a scroll.

Memoon unrolled it. "It's a story about a dragon who's afraid of the dark. Let's rename it Dragon Afraid of the Dark and put it in Stories > Adventure."

By evening the mountain was gone. Every shelf had a label, every scroll had a clear name, and every name had a little coloured tag showing what kind of work it was: blue for stories, red for recipes, green for songs. Memoon had invented extensions without even meaning to.

Bop the robot chef rolled in, nervous. "The laddoo recipe?"

Kachui didn't even need to think. "Recipes. Then Sweets. Third scroll from the left." He pulled it out in five seconds flat.

Bop hugged him so hard that his spectacles went crooked.

❓ Check Your Knowledge

A. Choose the correct answer.

  1. A file is: a) a part of the keyboard b) one saved piece of information with a name c) a kind of window
  2. A folder inside another folder is called a: a) subfolder b) mini file c) shortcut
  3. In Holiday.jpg, the part .jpg is the: a) path b) file name c) file extension
  4. Which is the biggest? a) 1 KB b) 1 GB c) 1 MB

B. True or false?

  1. A folder can hold both files and other folders.
  2. Two files in the same folder can have exactly the same name and extension.
  3. A photo usually has a bigger file size than a short typed story.
  4. My:Story.txt is an allowed file name in Windows.

C. Fill in the blanks.

  1. The list of folders you pass through to reach a file is its .
  2. A file ending in .mp3 is probably a file.
  3. File size is measured in .

D. Challenge. Write the path to the file Funny Poem.txt if it sits in a folder called Poems, which is inside English, which is inside School.

📚 Word Bank

WordMeaning
FileOne saved piece of information with a name, such as a story, picture or song.
FolderA container that holds files and other folders.
SubfolderA folder inside another folder.
Folder treeA picture of how folders sit inside each other, branching like an upside-down tree.
PathThe list of folders you go through to reach a file.
File nameThe name you give a file to say what is inside.
File extensionThe letters after the dot, such as .txt or .png, that show what kind of file it is.
IconA small picture that stands for a file, folder or app.
ByteThe basic unit for measuring how much space information takes up.
KB, MB, GBKilobyte, megabyte and gigabyte: bigger units of file size, each about 1,000 times the one before.

Keep learning with Byte by Byte

Explore Book 3: Files, Folders and the Internet. Find the ebook, purchase details and teaching slides on MemuniCity.

Watch this chapter on YouTube

Comments

Popular posts from this blog

CA-7 Job Status and Failure Reason Codes

Here are the various status codes that You may see for jobs in the Queue or Logs in CA-7. R-C0002 R-C0003 R-C0099 R-C0255 R-JCLER A-U0002 A-U0004 A-U0015 A-U0043 A-U4095 A-SOC7 A-U4000 Reason Code/Job Status Code explanation: The indication of the job's current disposition. Values and their meanings are: A-Snnnn-- The job has failed with a system abend. A-Unnnn --The job has failed with a user abend. C-Cnnnn --The job has completed successfully and is going through completion processing. E-ARFATT-- An error occurred during the attempt to attach ARF definitions. This can result if the ARFSET specified is not defined. A diagnostic message may have been written to the CA-7 log, the OS console, or to the trailer queue for the job (in which case it can be displayed using LQ,JOB=x,LIST=ALL). E-ARFERR ---The job encountered an error in the ARF processing. Do a LARFQ command for the job to get more specific information. E-SEGERR --The job has been requeued...

Whistling Winds and Waterfalls: 4 Days of Magic in Shillong

Nestled in the clouds, where the scent of pine trees mingles with the rhythm of waterfalls and the tunes of local guitar-strumming youth—Shillong is more than a place. It’s a vibe. If you’ve got 3 nights and 4 days, you’ve got just enough time to fall in love. Here’s how to make the most of it—food, fun, fog and fantastic views included. Day 1: Shillong, We’re Coming for You! You land in Guwahati, barely out of the airport when the hills start calling. You hop into your cab, Spotify on, windows down, and the three-hour ride to Shillong begins. Just when you think it can’t get better, you stop at Umiam Lake —a lake so calm, it looks like someone ironed the water. By evening, you’re sipping hot chai in Laitumkhrah, maybe nibbling on spicy momos or pork jadoh from a roadside stall. You’re checked into your charming hotel ( Tripura Castle if you fancy old-world royalty, Ri Kynjai if you’re into lakeside poetry). The breeze whispers secrets of waterfalls and pine forests. Sleep well, drea...

Installing and Configuring Hadoop on Ubuntu as a Pseudo Distributed Single Node Cluster

Briefly what is psuedo-distributed single node Hadoop cluster: It is a Hadoop distributed cluster having Single Node. All the five daemons (NN,DN,JT,TT,SNN) are running as individual JVM (java process) instances. We will get all distributed features of Hadoop. This mode is used to develop, test, and staging (before production) Map Reduce programs quickly. It writes all the system, daemon and user logs to different files on the cluster To install Hadoop in this mode, we have to modify the hadoop-env.sh, core-site.xml, hdfs-site.xml, mapred-site.xml. hadoop-env.sh contains all the Environment variables which are required for running Hadoop. All the default values are fine, Only we have to modify the JAVA_HOME=“The location of Java Home Directory” Core-site.xml contains all the cluster specific information like io, temp directory, sorting, file system uri etc. Hdfs-site.xml contains all the parameters which are specific to HDFS like name node directory, data node directory...