cd into file disks and folders
dir [Drive:][Path][FileName] [...] [/p] [/q] [/w] [/d] [/a[[:]attributes]][/o[[:]SortOrder]] [/t[[:]TimeField]] [/s] [/b] [/l] [/n] [/x] [/c] [/4]
The parameter [Drive:][Path] specifies the drive and directory whose list is to be viewed. [FileName] Specifies a specific file or group of files whose list is to be viewed.
/p Displays the list one screen at a time. To view the next screen, press any key on the keyboard.
/q Display file ownership information.
/w Displays the list in horizontal format, with five file or directory names per column.
/d is the same as /w, but the files are sorted alphabetically in columns.
type shows the contents of the file
edit file
Method 1: Write the content using the command echo content > filename.txt
echo append content >> filename.txt method
2: Use the DOS software edit.exe to create the file command edit and press Enter, and save the written content as a file to modify the file,
edit boot.ini, modify the boot.ini file command, and save it after modification.
Note: boot.ini is a system file and a read-only file. Before modifying it, the file attribute must be changed to read-write before modification. Use the command to modify attrib -s -h -r boot.ini, and then change the attribute back after the modification, attrib +sh +r boot.ini