Article directory
1. What is DOS?
DOS (Disk Operating System) is the full name of Disk Operating System . It is an operating system like Windows and Linux, but it has no graphical user interface. The appearance is shown in the figure below:
The DOS system has two notable features:
- A single-user single-tasking operating system , where only one task can be executed at a time. It is not like the Windows system, where you can listen to music and read news at the same time.
- Perform actions by typing commands , without using a mouse. Therefore, there are certain basic requirements for English.
Second, how to start the DOS command line?
1. Press the keyboard win+R key at the same time to open the run box
2. Enter the command cmd in the run box , and then click OK to enter the DOS command line
3. Commonly used DOS commands
cd.. Return to the parent directory
cd\ to return to the root directory
d: enter the D drive
cls clears all DOS operations
dir displays the current drive letter file information
type filename.extension shows file content
copy con file name. extension to create a file,
start writing content
Ctrl+Z and press Enter to end writing
del filename.extension delete specified file
注意:只能删除文件,不能删除文件夹,如果用上述命令删除文件夹,只能清空文件夹里面的文件,如果里面还有下一级文件夹,也是不能删除的
del. Delete all files in the current directory
del *.txt deletes all txt files in the current directory. Similarly, .doc/.png/.xls, etc. delete files in the corresponding format
md filename create folder
attrib +h filename hide folder
attrib -h filename unhide folder
shutdown -s -t seconds to shut down after the number of seconds
shutdown -r -t seconds, how many seconds to restart
ren Old name New name double naming
move original address move to new address
copy original address destination address copy and paste