What are files and folders in the computer?

This article helps beginner computer users have more knowledge to access and use the computer in the best way. Let's find out "What are the files and folders on the computer?"

What are files and folders in the computer? Picture 1

1. What is a file? (File)

a) Concept:

File (File) is a collection of related information together stored on external memory. Specific files are programs and data stored on disk. To distinguish between files , each file has a name.

b) File naming rules: The file name looks like this.

= File name [. ] extension

- Where the main name of the file (file name) is required.

- Extensions are used to define file types and may or may not.

- The file extension is separated by a name by a period (.)

For example: 1.xls Quyet (EXCEL file), Tong-ket-quy1-2004.doc, Turbo.exe

Attention :

- Characters cannot be used to name files as / *? <>;

- Files with extensions of EXE, COM, BAT are usually program files.

- Files with the extension SYS are usually system files containing information related to hardware, device declaration, etc.

- Files with extensions of DOC, TXT, HTM are usually text files.

- PAS, PRG, C file extensions are source program files of PASCAL, FOXPRO, C.

In the main name or file extension can use * or? to refer to a file family instead of a file.
- The * character represents an arbitrary group of characters from the position of *.
- Character ? Represents an arbitrary character at the position of?.

For example: * .PAS is a group of files with the extension PAS , and the main name is optional. DATA? .DOC is the name of the file with an arbitrary 5th character, it is a group of files with names such as: DATA1.DOC, DATA2.DOC, DATAT, .

- MS-DOS and Windows reserved the following names for some peripheral devices, do not use these names for the file name.

Reserved name CON device Keyboard, monitor (Console) LPT1 (PRN) Parallel Port 1 (Parallel printer 1) LPT2, LPT3
Parallel Port 2,3 (Parallel printer 2, 3) COM1 (AUX) Serial Port 1 (Serial port 1) COM2 Serial Port 2 (Serial port 2) CLOCKS NUL 's clock Dummy Device clock

2. What is a directory? (Folder / Directory)

What are files and folders in the computer? Picture 2

- A folder is a formatted partition on disk to store systematic files. Users can divide a disk into separate areas, each of which can be a storage of certain software or individual files of each user . Each area is called a directory .
- Each disk on the machine corresponds to a directory and is called the root directory (Root Directory) . The root directory may contain files or subdirectories (Sub Directory). Each subdirectory may contain other files or subfolders . This structure is called a directory tree.
- The name of the directory (Directory Name) is set according to the naming rules of the file, usually the directory name does not place the extension.

What are files and folders in the computer? Picture 3

- The root directory is the highest directory organized on the disk and is created during formatting the disk using the Format command, so we cannot delete this directory.

- Current directory (Working Directory) is the directory in which we are currently selecting or working.

- Empty Directory (Empty Directory) is a directory in which does not contain files or subfolders.

For example: According to the structure diagram of the directory tree above, we see:

- C root folder : contains folders BC4, BP, DYNEDWIN, .

- In sub-level directory 1 WINDOWS contains sub-folders ALL USERS, APPLICATION DATA, .

- In level 2 subdirectory COMMAND contains sub-level 3 sub-directory EBD and files ANSI.SYS, ATTRIB.EXE,…

3. Path (Path):

  1. Once there is a folder organization on the disk, it's easier to manage the files . However, when the user wants to access an object (a file or a subfolder), it is not simply a matter of naming it (since there may be multiple files or subfolders with the same name on the different folders) that must be very clear about the location of the object to access.
    For example : The location of the ANSI.SYS file is fully defined as follows:
    C: WINDOWSCOMMANDANSI.SYS
    Where : Drive letter is C, folder name is WINDOWS , COMMAND . The file name to access is ANSI.SYS.
    Path: A string of folders that we need to go through to get to the file we are using . In the path the directory names are separated by a slash (left slash), where the folder right after is the child of the folder immediately preceding it.
    For example:
    - C: WINDOWSASYMRUNTIME is the path to the RUNTIME folder in the directory
    C: WINDOWSASYM.
    - C: WINDOWSCOMMANDANSI.SYS is the path to the ANSI.SYS file in the C: WINDOWSCOMMAND directory .
3.5 ★ | 2 Vote

May be interested

  • Basic computer test - Part 4Basic computer test - Part 4
    continuing the series of computerized quiz questions, in the following article will be extremely interesting questions for you to answer about the issues surrounding the subject of informatics. let's start.
  • Basic computer test - Part 2Basic computer test - Part 2
    continuing the series of computerized quiz questions, in the following article will be extremely interesting questions for you to answer about the issues surrounding the subject of informatics. let's start.
  • Basic computer test - Part 3Basic computer test - Part 3
    next series of multiple choice questions on informatics, in the questions below will be questions related to powerpoint so readers can check their understanding of this section.
  • 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.
  • 5 Windows files and folders can be deleted to free up space5 Windows files and folders can be deleted to free up space
    windows contains many unnecessary files and folders from hidden cache, old files you can delete them to free up space. but to know whether it is safe to delete folders and files is safe.
  • How to Back Up Windows Folders to MemopalHow to Back Up Windows Folders to Memopal
    memopal is an online backup and storage service. it synchronizes your computer files the way they are organized in your computer. you can set or select specific folders to be backed up to memopal automatically using the memopal version for...
  • Instructions on how to encrypt files and folders on UbuntuInstructions on how to encrypt files and folders on Ubuntu
    ubuntu possesses many advanced security features that users may not know about. for example, libreoffice users can encrypt files and folders on ubuntu extremely simply but extremely securely. so what is that feature and how to use it on ubuntu for files and folders?
  • Secure folders with Secure Folders softwareSecure folders with Secure Folders software
    protect folders, applications on your computer to help you manage your computer better and prevent others from viewing important folders. secure folders is free software with a simple interface, easy to use and compatible with all versions of windows.
  • How to share files and folders in DropboxHow to share files and folders in Dropbox
    how to share files and folders in dropbox. to share files or folders of dropbox, you need to open your file folder, click on files in the left column under the dropbox icon.
  • How to Sync FoldersHow to Sync Folders
    this article shows you how to share folders with other computers on your network. this allows any computer on the network to access and change files in the shared folder. you can share and access folders on windows and mac operating systems; however, the computer that contains the shared folder and the computer that has access to the folder must be on the same wireless (or wired) internet network. if you just want to synchronize a folder on your computer with a local folder or flash drive, you can use the freefilesync program.