The dir you don't know about the DOS command

      For an ordinary person who is proficient in operating a computer, simple DOS commands are nothing to say, but many DOS commands are not just simple commands on the surface, they must be matched with some necessary configuration parameters to play the greatest role and effect. Take the most commonly used dir command as an example below.

      The dir command is a command to display the disk directory. Enter dir at the command prompt, and all the contents of the disk will be displayed. If a hacker is looking for information on a broiler computer, he can view it through this command.

      For a hacker, you must remember the dir command /a parameter, which is to view hidden files in the target host, such as Trojan horse programs, virus programs, etc. For example, dir d: /a; (default without /a does not display hidden files and directories);


Format: dir[drive letter][path][/W][/P][/L][/O: sort][/A: attribute][/S]

Commonly used as follows:

/a:h Display hidden files and directories;

/a:d display directory;

/a:s display system files;

/a:r display read-only files;


In addition, /p,   pauses every time a full screen is displayed, and waits for the user to press any key before continuing to display the next screen, to avoid the "panning" phenomenon that cannot be fully displayed when there are too many files in the directory.


/o:n means to display the files or folders contained in it in alphabetical order of the file name;

/o:e means to arrange in alphabetical order of file extension;


/s  Display and count files in the specified directory and all subdirectories



Guess you like

Origin blog.csdn.net/liushulin183/article/details/49454961