Terminal vs GUI: Listing Files and Counting Text Files
📖 Scenario: You are working on a Linux system. Sometimes you use the graphical interface (GUI) to see files, but other times you use the terminal (command line) to do tasks faster.In this project, you will practice using the terminal to list files and count specific files, showing how the terminal can be powerful and quick compared to clicking around in a GUI.
🎯 Goal: Learn how to list files in a directory and count how many text files (.txt) are there using terminal commands.
📋 What You'll Learn
Use the
ls command to list filesUse a variable to store the directory path
Use a command to count files ending with
.txtPrint the count of text files
💡 Why This Matters
🌍 Real World
Knowing how to use the terminal to list and count files helps you manage files quickly without needing to open a graphical interface.
💼 Career
Many IT and developer jobs require comfort with the command line to automate tasks and work efficiently on servers or remote systems.
Progress0 / 4 steps