Windows#


Table of Contents#


App

UI

macOS

Windows

File Manager

GUI

Finder

File Explorer

Shell/CLI

TUI

Zsh, Bash, PowerShell

PowerShell, Git Bash, Command Prompt

Terminal

GUI

Terminal.app

Windows Terminal

Text Editor

GUI

TextEdit

Notepad


Keyboard Shortcuts#

Keyboard shortcuts in Windows

Shortcut

Graphical

Action

Ctrl-Right

⌃→

Jump to the last/rightmost column

Ctrl-Left

⌃←

Jump to the first/leftmost column

Ctrl-Up

⌃↑

Jump to the first/topmost row

Ctrl-Down

⌃↓

Jump to the last/bottommost row

Ctrl-z

⌃z

Undo

Ctrl-s

⌃s

Save

Ctrl-c

⌃c

Copy

Ctrl-v

⌃v

Paste

Ctrl-f

⌃f

Search

Ctrl-a

⌃a

Select All


Documentation#

Windows help & learning

Windows Client#

Windows client documentation for IT Pros

Windows Server#

Windows Server documentation

Windows Terminal#

https://www.commandlinewizardry.com/post/windows-terminal-one-screen-to-rule-them-all

https://learn.microsoft.com/en-us/windows/terminal/

Git for Windows#

“Parts of Git are implemented in shell script, and Git for Windows runs those scripts via MSYS2’s POSIX emulation layer, which in turn is based on the Cygwin POSIX emulation layer.”

https://www.commandlinewizardry.com/post/how-to-add-git-bash-to-windows-terminal

C:\Program Files\Git\bin\bash.exe
C:\Program Files\Git\mingw64\share\git\git-for-windows.ico
C:\cygwin64\Cygwin.bat
C:\cygwin64\Cygwin.ico

“In recent years, the bash shell and Linux commands have become ubiquitous. By using Git Bash or Cygwin, you can easily access these capabilities from the Windows environment. For even more capability, you can install the Windows Subsystem for Linux, which gives you the ability to run full versions of Linux operating systems and access the capabilities directly from the Windows Command Prompt and PowerShell.” (Cybersecurity Ops with Bash)

“You can also use zsh under Windows by installing Cygwin, which provides a UNIX-like environment for programmes — given the weakness of the standard Windows command interpreter, this is a good thing to do. There are ports of older versions of zsh to Windows which run natively, i.e. without a UNIX environment, although these have a slightly different behaviour in some respects and I won’t talk about them further.” https://zsh.sourceforge.io/Guide/zshguide01.html#l1


File System#

The native graphical file explorer application on Windows is File Explorer.

C:\
├── AppData
├── PerfLogs
├── 'Program Files'
├── 'Program Files (x86)'
├── ProgramData
├── Recovery
├── System
├── System32
├── SysWOW64
├── Users
│   ├── Public
│   └── USERNAME
│       ├── Desktop
│       ├── Documents
│       ├── Downloads
│       └── OneDrive
├── Windows
└── WinSxS
C:\Users\<user>\Anaconda3\
GitBash
MongoDB
PostgreSQL

Environment Variables

  • %%DATE

  • %OS%

  • %ProgramFiles%

  • %ProgramFiles(x86)%

  • %USERNAME%


Package Management#

  • [ h ][ g ][ w ] Chocolatey

  • [ h ][ g ][ w ] Scoop

  • [ h ][ g ][ w ] Windows Package Manager

  • [ h ] winstall

winget install sysinternals --accept-package-agreements
winget install --id=MHNexus.HxD -e

Bash#

~/.bashrc#

alias cls='clear'          # DOS-ish     for clear
alias copy='cp'            # DOS-ish     for cp
alias del='rm'             # DOS-ish     for rm
alias dir='ls'             # DOS-ish     for ls
alias ipconfig='ifconfig'  # Windows-ish for ifconfig
alias md='mkdir'           # DOS-ish     for mkdir
alias move='mv'            # DOS-ish     for mv
alias rd='rmdir'           # DOS-ish     for rmdir
alias ren='mv'             # DOS-ish     for mv/rename
alias tracert='traceroute' # DOS-ish for traceroute

Security, Privacy, & Telemetry#

C:\Windows\System32\drivers\etc\
127.0.0.1    localhost
::1          localhost
127.0.0.1    data.microsoft.com
127.0.0.1    msftconnecttest.com
127.0.0.1    azureedge.net
127.0.0.1    activity.windows.com
127.0.0.1    bingapis.com
127.0.0.1    msedge.net
127.0.0.1    assets.msn.com
127.0.0.1    scorecardresearch.com
127.0.0.1    edge.microsoft.com
127.0.0.1    data.msn.com

https://www.itechtics.com/disable-telemetry-data-collection-windows-10/

Microsoft Compatibility Telemetry (CompatTelRunner.exe)


Resources#

  • [ d ] Software Restriction Policies Technical Overview

  • [ h ][ g ][ w ] Chocolatey

  • [ h ][ g ][ w ] Cygwin

  • [ h ][ g ][ w ] Mintty

  • [ h ][ g ][ w ] MSYS2

  • [ h ][ g ][ w ] Pacman

  • [ h ][ g ][ w ] Scoop

  • [ h ][ g ][ w ] Windows Command Prompt (cmd.exe)

  • [ h ][ g ][ w ] Windows Package Manager (winget)

  • [ h ][ g ][ w ] WSL Windows Subsystem for Linux

Scoop vs Chocolatey vs Winget

Scoop vs Cygwin vs MSYS

Security

  • [ h ] Abuse.ch

  • [ h ] Bitdefender

  • [ h ] Comodo

  • [ h ][ w ] HxD

  • [ h ] Kaspersky

  • [ h ] Malwarebytes

  • [ h ] PeStudio

  • [ h ] PortMaster

  • [ h ] Sysinternals

    • [ d ] Autoruns

  • [ h ] Virus Total

Privacy

  • [ g ] MajorPrivacy

  • [ h ] O&O ShutUp10++

  • [ g ] PrivateWin10

  • [ g ] Privatezilla

  • [ g ] Sophia Script

  • [ h ] Ultimate Windows Tweaker

  • [ g ] WindowsSpyBlocker

YouTube#

David Bombal

  • [ y ] 06-02-2023. “Windows Pentest Tutorial (Active Directory Game Over!)”.

NetworkChuck

  • [ y ] 06-30-2023. “how to HACK a password // Windows Edition”.

  • [ y ] 06-28-2023. “you NEED to learn Windows RIGHT NOW!!”.

The PC Security Channel

  • [ y ] 02-23-2024. “How to never accidentally run Malware: Must Have Windows Tweaks”.

  • [ y ] 01-06-2024. “Malware beats Windows Defender: How you get hacked”.

  • [ y ] 11-24-2023. “Stop Windows Spying with one click Firewall”.

  • [ y ] 10-20-2023. “Windows Defender vs Top 100 Malware Sites”.

  • [ y ] 09-16-2023. “Stop Windows Spying with hosts file”.

  • [ y ] 05-28-2023. “How to use Windows Firewall to block Hackers and Malware”.

  • [ y ] 02-28-2023. “Stop Windows Spying”.

  • [ y ] 01-29-2023. “Has Windows become Spyware?”.

  • [ y ] 04-13-2022. “Free Security Tools Everyone Should Use”.

Rob Braxman Tech

  • [ y ] 10-25-2023. “Why an Antivirus Does Nothing for You”.

ThioJoe

  • [ y ] 03-30-2024. “17 Computer Tips You’ll WISH You Knew Sooner”.

  • [ y ] 10-09-2021. “Finding Hidden Startup Programs in Windows: Ultimate Guide”.

Windows IT Pro

  • [ y ] 02-08-2022. “Sysinternals: Autoruns deep dive (demo) | Startup, Boot, Login, Apps, Windows | Microsoft”.

  • [ y ] 02-08-2022. “Sysinternals: ProcDump deep dive (demo) | Command line, CPU, crash dump, Windows | Microsoft”.

more

  • [ y ] 10-19-2023. Britec09. “How to Check if Someone is Remotely Accessing Your Computer”.

  • [ y ] 02-14-2023. “Is Windows Defender Enough To Stay Protected”.

  • [ y ] 02-03-2024. stacksmasher. “Breaking Bitlocker - Bypassing the Windows Disk Encryption”.

  • [ y ] 02-02-2024. Titus Tech Talk. “Changing Windows Desktop to Tile NEW Programs”.


Texts#

  • Russinovich, Mark & Aaron Margosis. Troubleshooting with the Windows Sysinternals Tools: Guidance from the tools’ creator.


Terms#

  • [ w ] Compatibility Layer

  • [ w ] Disk Operating System (DOS)

  • [ w ] DOS MZ Executable (.exe)

  • [ w ] Dynamic-Link Library (DLL)

  • [ w ] DLL Hell

  • [ w ] MinGW

  • [ w ] MS-DOS

  • [ w ] Notepad

  • [ w ] Portable Executable (PE) (.exe)

  • [ w ] PuTTY

  • [ w ] Shim

  • [ w ] System Information

  • [ w ] Task Manager

  • [ w ] WinDbg

  • [ w ] Windows

  • [ w ] Windows 11

  • [ w ] Windows API

  • [ w ] Windows Command Prompt (cmd.exe)

  • [ w ] Windows Console

  • [ w ] Windows File Explorer

  • [ w ] Windows Installer

  • [ w ] Windows Registry - a hierarchical database that stores settings and other data that is critical to the operation of Windows and apps

  • [ w ] Windows Template Library (WTL)

  • [ w ] Windows Terminal


Notes#

Slashes in Windows path names