Skip to main content

DOS Commonly Used Commands

MS DOS - Microsoft Disk Operating System

List directories only

DIR /AD
-A: Attribute
-D: Directory

List files older than 30 days

FORFILES /D -30

Search for test.doc file, or *.doc files

dir /s test.doc
dir /s *.doc

Run cipher.exe to wipe free space on C: drive or D: drive (about cipher.exe)

cipher /w:c:
cipher /w:d:

System Boot Time

systeminfo | find "System Boot Time"

Popular posts from this blog

Wireguard VPN: Notes

Notes while trying Wireguard VPN on some of my testbeds.

Hydra: Notes

Hydra v9.1 (c) 2020 by van Hauser/THC & David Maciejak - Please do not use in military or secret service organizations, or for illegal purposes (this is non-binding, these *** ignore laws and ethics anyway).

Windows command: icacls

Icacls is a command-line utility that can be used to display or modify discretionary access control lists (DACLs) on specified files, and apply stored DACLs to files in specified directories.