Concepts of files and folders

A file is a collection of user-generated information from a computer

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.

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

What is file?

Picture 2 of Concepts of files and folders
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?

Picture 3 of Concepts of files and folders
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

Picture 4 of Concepts of files and folders
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.

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

Update 08 May 2023
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile