Concepts of files and folders

A file is a collection of user-generated information from a computer, which is one or more encoded strings of characters and symbols. A folder is a special file type that acts as a container, used to manage and organize files.

Concepts of files and folders Picture 1 Concepts of files and folders

What is file?

Concepts of files and folders Picture 2 File - A file is a collection of user-generated information from a computer

  1. File - A file is a collection of user-generated information from a computer, this information is one or more strings of characters, encoded symbols.
  2. The contents of a file can only be viewed when opened by the application program that created it or by other programs that support the file viewing function. If you do not use the correct program to open the file, it will only see the encoded characters.
  3. Files are named and stored in data storage devices such as hard disks, floppy disks, CD/DVD-ROM discs, USB drives, etc.
  4. The file name includes the name - Name and the extension - Extension  , also known as the extension, used to classify files. Names and extensions are separated by a period.
  5. Initially the file name consisted of only 8 characters and the extension was 3 characters, but now the file name has a length depending on the operating system's file system, in some cases it can be named Vietnamese accents.
  6. You can name the files the same but have to put them in different places, you can't have 2 files with the same name and extension in the same place.

In Windows operating system, uppercase and lowercase file names are the same. Some operating systems distinguish between uppercase and lowercase filenames.

Extensions of some common files 

  1. .exe- Program files
  2. .doc .docx- Formatted text file
  3. .txt  - Unformatted raw text file
  4. .pdf- Portable document file
  5. .jpg .jpeg .gif .png .bmp .tiff- Image files
  6. .mp3 .wav .wma- Audio files
  7. .mp4 .avi .mpeg .mov- Movie files
  8. .htm .html- Hypertext language files of web pages
  9. .zip .rar- Compressed file

See also Common file types and extensions

What is a directory?

Concepts of files and folders Picture 3 A folder is a special file type that acts as a container for files

  1. Just like files, folders can be named arbitrarily but do not need to have an extension and the length of the name also depends on the operating system's file system, in some cases it can be named Vietnamese accents.
  2. You can create multiple folders to store different files to help categorize them for easy searching and use.
  3. Folder - Folder or Directory is a special file type that acts as a container, used in managing and organizing files. Folders can contain files and subfolders - Subfolder  or  Sub-Folder within, these subfolders can also contain other files and subfolders.
  4. If a directory contains sub-directories inside, it is called the parent directory -  Parent Directory  or the main directory -  Main Folder . The folders inside are called subdirectories or subdirectories -  Subfolder  or  Subdirectory 
  5. You can name folders the same but they must be located in different locations, it is not possible to have 2 folders with the same name in the same place.

Structure of folders and files

Concepts of files and folders Picture 4 The structure of folders and files is tree-shaped

  1. The structure of folders and files is tree-shaped, so it is often called a directory tree - Folder Tree
  2. The drive is treated as the root folder - Root Folder .
  3. You can create an unlimited number of same-level folders and multi-level sub-folders.
  4. You can create as many files according to the available disk space in your computer.
  5. Depending on the content of the file contains more or less data, it occupies a space on the storage device more or less, often called a file size - large or small capacity.
  6. The folder itself takes up a negligible amount of space on the storage device, but if it contains files inside it will be as large as all the files inside combined.
  7. Commonly used file size calculation units are KB - Kylobyte , read is ký-lô-bai, MB - Megabyte , read is mê-ga-bai ,  GB - Gigabyte , read is ghi-ga-bai and TB - Terabyte, read is tê-ra-baiWhere:1024B = 1KB 1024KB = 1MB 1024MB = 1GB 1024GB = 1TB
  1. File or folder names can be set the same or different, but if they are named the same, they cannot be in the same location.
  2. File or folder names can be set with arbitrary characters such as symbols, spaces, Vietnamese accents, etc., depending on the permission of the Operating System, but should be set stars. for brevity and replace spaces with hyphens -or _to be compatible with systems - Operating systems on different devices.

In a nutshell, leaving aside the confusing concepts of files and folders, you can think of the drive as a library room, the folders as the bookshelves inside the room. The bookshelves of a bookshelf are the subfolders and the main files are the books arranged in the compartments. The file name is the title and the file content is the content of the book, this is the part that is of interest to the user.

Concepts of files and folders Picture 5 The structure of folders and files is like a bookshelf

4.5 ★ | 2 Vote

May be interested

  • How to exclude files and folders with Robocopy in Windows 10How to exclude files and folders with Robocopy in Windows 10
    on windows 10, robocopy is a powerful command-line file management tool. in this guide, you'll learn the steps to copy data with robocopy on windows 10, except for unnecessary files and folders.
  • How to view hidden files and folders on LinuxHow to view hidden files and folders on Linux
    the linux operating system includes hundreds of files and folders that are hidden by default. such files are called hidden files or dot files because they always start with a dot (.).
  • How to enable / disable the Security tab of files and folders on Windows?How to enable / disable the Security tab of files and folders on Windows?
    on ntfs-formatted hard drive partitions, you can set security permissions for files and folders. this permission allows you to access or deny access to files and folders. to set security for files and folders, please refer to the steps in the following article of network administration.
  • How to set password protection folder on MacHow to set password protection folder on Mac
    on macos, the folders are not encrypted directly, but you can set a password to protect it. this is an effective way of protecting folders and files contained therein.
  • Guide to lock, hide and secure files and folders with Hide Folders softwareGuide to lock, hide and secure files and folders with Hide Folders software
    do you need to protect all data and privacy information on your computer? i will introduce you to hide folders software - one of the most powerful applications to support users to protect data.
  • How to show hidden files, hidden folders in Windows 10, Windows 7How to show hidden files, hidden folders in Windows 10, Windows 7
    how to show hidden files, hidden folders in windows 10, windows 7. in some cases, users actively hide files or folders of their important data to ensure safety. however, many times, when we hide, we don't know how to display it
  • How to Show Hidden Files in Windows 7How to Show Hidden Files in Windows 7
    windows 7 hides important folders and files in order to keep users from modifying or deleting their files and subsequently damaging their systems. windows 7 does not show hidden files by default. for example, the pagefile.sys file is a...
  • How to decrypt files and folders on Windows 10How to decrypt files and folders on Windows 10
    in today's world of rampant hacking and data theft, keeping files encrypted is one of the few viable ways to protect them from abuse.
  • Hide and protect folders on WindowsHide and protect folders on Windows
    introduce to free hide folder software, a free software to hide and set up passwords for private folders on your computer. if you regularly use a shared computer with others, then sometimes you also need to 'hide' something to avoid the general user's curiosity about some of your personal files or folders?
  • The simplest way to show and hide folders on Windows 10The simplest way to show and hide folders on Windows 10
    by hiding folders on windows 10 computers, users can hide them without anyone knowing. especially for folders containing important files and documents, hiding folders on windows 10 is extremely necessary. to know how to hide and show folders on windows 10, readers can refer to the instructions below and follow the steps.