DOS Files and directories

Source: Internet
Author: User
Tags date first row
In DOS, files and directories are the most important concepts, which is different from 951, and "directory" is called "folder" in 95.

If we want to view the files on our computer, we can enter the dir command and return. Here are the results shown on my computer screen.

As shown in the illustration, the following

is a directory, and there are no files, which are categorized into many different purposes. You see, the first row is a DOS directory, which has many DOS command files and some auxiliary information files. The second row is the Windows Catalog, which contains a lot of files about Windows programs.

In DOS, the file name rule is 8.3, which is a filename consisting of a file base name and file name extension, with a dot "." In the middle. Separated, the file base name consists of no more than 8 English letters or numbers, the file name extension consists of not more than three letters or numbers, the file base name must have, the extension can not.

In the picture, the first column is "file base name" and the second column is "file name extension." Note: When displaying a list of files with the dir command, there is no "." Between the file base name and the extension. Separator, but you must enter it when you enter the full file name.

The third column shows the size of the file, indicating how much storage space it occupies, that is, the amount of information the file contains, the more information it contains, the larger the file is.

The fourth column represents the date the file was created or the date it was last changed, each file has a corresponding build time, just as everyone has their own birthdays, and the file generation time is when the file is formed. The time uses the usual expression method, is composed by the year, the month, the day.

The last column represents the time when the file was generated, and the last letter a indicates that the morning and p represent the afternoon.

Let's take a look at the bottom one or two lines, what do these mean? "File (s)" is to tell you that the directory contains "10" files, which add up to a total of "64,692 bytes" large, in this calculation, each subdirectory is a file, but its size is 0. The last line is to tell you that your current working disk still has the disk space available on the "215,735,513 bytes" size.

If we want to look at the files in the DOS directory, then we can hit Dir dos return, which means looking at the DOS directory, if you knock dir windows return is to look at the Windows directory of the file meaning. You can try to practice the dir command and observe what is underneath the folder.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.