Skip to content

DeadmanXXXII/Cmdprompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Cmdprompt

Command list Here is the extensive list of commands for cmdprompt CLI only.

System Information and Management

  • Get system information:

    systeminfo
  • List all running processes:

    tasklist
  • Get detailed information about a specific process:

    tasklist /v /fi "imagename eq processname.exe"
  • List all installed programs:

    wmic product get name,version
  • Check system disk usage:

    chkdsk
  • Check disk space:

    dir
  • Check network configuration:

    ipconfig /all
  • List all network connections and listening ports:

    netstat -an
  • View current active connections:

    netstat -a

File and Directory Management

  • List files and directories in the current directory:

    dir
  • Create a new directory:

    mkdir directoryname
  • Delete a directory:

    rmdir /s /q directoryname
  • Copy files:

    copy sourcefile destinationfile
  • Move files:

    move sourcefile destinationfile
  • Delete files:

    del filename
  • Search for files:

    dir /s /b filename
  • Find files containing specific text:

    findstr /s /i "searchtext" *.*

Network Commands

  • Ping a host:

    ping hostname
  • Trace route to a host:

    tracert hostname
  • Test network connection to a port:

    telnet hostname port
  • View routing table:

    route print
  • Flush DNS cache:

    ipconfig /flushdns
  • Display network shares:

    net share

User and Group Management

  • List all users:

    net user
  • Add a new user:

    net user username password /add
  • Delete a user:

    net user username /delete
  • Add a user to a group:

    net localgroup groupname username /add
  • Remove a user from a group:

    net localgroup groupname username /delete

Security and Permissions

  • Check file permissions:

    icacls filename
  • Change file permissions:

    icacls filename /grant username:(permissions)
  • View active network connections:

    netstat -ano
  • Stop a process by PID:

    taskkill /PID pidnumber
  • Start a process:

    start processname.exe

System and Application Logs

  • View Windows Event Logs:

    eventvwr
  • Export Event Log to a file:

    wevtutil epl "logname" "filename.evtx"
  • View specific log entries:

    wevtutil qe "logname" /q:"*[System[(EventID=number)]]" /f:text

System Maintenance

  • Run system file checker:

    sfc /scannow
  • Check for Windows updates:

    wuauclt /detectnow
  • Clean temporary files:

    del /q /f %temp%\*
  • Update Windows Defender:

    MpCmdRun.exe -SignatureUpdate

Summary

This list covers a broad range of cmd commands for system administration, security, file management, network diagnostics, and more. Commands are organized by category to facilitate efficient use in various administrative and troubleshooting tasks. Always ensure to run commands with the appropriate privileges and follow best practices for system management.

About

Command list

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published