The first step of hacking: start from knowing these DOS commands


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:
insert image description here

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

insert image description here

2. Enter the command cmd in the run box , and then click OK to enter the DOS command line

insert image description here

3. Commonly used DOS commands

cd..    Return to the parent directory

insert image description here

cd\    to return to the root directory

insert image description here

d:    enter the D drive

insert image description here

cls    clears all DOS operations

dir    displays the current drive letter file information

insert image description here

type filename.extension    shows file content

insert image description here

copy con file name. extension    to create a file,
start writing content
Ctrl+Z and press Enter to end writing

insert image description here
insert image description here

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

insert image description here

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

insert image description here

insert image description here

move original address    move to new address

copy original address destination address    copy and paste

Guess you like

Origin blog.csdn.net/2201_75641637/article/details/131084634