# Windows CLI — Full blog index > 184 articles (showing up to 150). Interactive MDX demos omitted in markdown exports. ## CMD - [Advanced Batch](https://windows-cli.arnost.org/en/blog/advanced-batch-control): Master loops, conditions, and flow control. - [AI Coding Assistant Mistakes and How to Avoid Them](https://windows-cli.arnost.org/en/blog/ai-coding-assistant-mistakes): Avoid common AI coding assistant mistakes: vague requests, missing constraints, untested output, oversized diffs, and product-wrong fixes. - [How to Hide a File or Make It Read-Only with attrib](https://windows-cli.arnost.org/en/blog/attrib-command): Use attrib in CMD to inspect R, H, S, and A flags, hide or unhide files, and remove read-only status. Includes safe /s and /d examples. - [Bash Aliases](https://windows-cli.arnost.org/en/blog/bash-aliases): Learn how Bash aliases shorten repetitive commands and speed up daily shell work. - [Bash Apt](https://windows-cli.arnost.org/en/blog/bash-apt): Learn about Bash Apt - [Reading Files with cat](https://windows-cli.arnost.org/en/blog/bash-cat-basics): Use cat to quickly view file contents in the terminal. - [Read files with cat and less](https://windows-cli.arnost.org/en/blog/bash-cat-less): Dump a short file with cat, then page through a long file with less. - [Change folders in Bash with cd](https://windows-cli.arnost.org/en/blog/bash-cd): Jump to /, step up with .., and go home with ~ using the Bash cd command. - [Bash Chgrp](https://windows-cli.arnost.org/en/blog/bash-chgrp): Learn about Bash Chgrp - [Bash Chmod Basic](https://windows-cli.arnost.org/en/blog/bash-chmod-basic): Learn about Bash Chmod Basic - [Bash Chmod Group Drill](https://windows-cli.arnost.org/en/blog/bash-chmod-group-drill): Learn about Bash Chmod Group Drill - [CLEAR - Clear the Screen](https://windows-cli.arnost.org/en/blog/bash-clear): Learn to clear terminal output - [Copying Files and Directories](https://windows-cli.arnost.org/en/blog/bash-copy-files): Master cp to copy files and recursive directory structures. - [Creating Files with touch](https://windows-cli.arnost.org/en/blog/bash-create-files): Use touch to quickly create empty files. - [Check disk space and memory in Bash](https://windows-cli.arnost.org/en/blog/bash-disk-mem): See free disk with df -h, folder size with du -sh, and RAM with free -m. - [Bash Env Variables](https://windows-cli.arnost.org/en/blog/bash-env-variables): Learn about Bash Env Variables - [Find files by name in Bash](https://windows-cli.arnost.org/en/blog/bash-find-command): Search a tree with find . -name, then list only folders with -type d. - [Search file text with grep](https://windows-cli.arnost.org/en/blog/bash-grep-basics): Find matching lines in a file, then ignore letter case with grep -i. - [Bash Gzip](https://windows-cli.arnost.org/en/blog/bash-gzip): Learn about Bash Gzip - [Getting Help in Bash](https://windows-cli.arnost.org/en/blog/bash-help): Learn how to access help and documentation for any command. - [See past commands with history and which](https://windows-cli.arnost.org/en/blog/bash-history): Replay what you typed with history, and find where a command lives with which. - [Bash Basics](https://windows-cli.arnost.org/en/blog/bash-intro): Start your Bash journey with pwd and ls. - [Bash Jobs Bg](https://windows-cli.arnost.org/en/blog/bash-jobs-bg): Learn about Bash Jobs Bg - [Mastering ls Flags](https://windows-cli.arnost.org/en/blog/bash-ls-flags): Learn powerful ls flags to see more file details. - [Creating Directories with mkdir](https://windows-cli.arnost.org/en/blog/bash-mkdir): Master mkdir to create single and nested directory structures. - [Moving and Renaming Files](https://windows-cli.arnost.org/en/blog/bash-move-rename): Use mv to move files between directories and rename them. - [Bash Nano](https://windows-cli.arnost.org/en/blog/bash-nano): Learn about Bash Nano - [Directory Navigation in Bash](https://windows-cli.arnost.org/en/blog/bash-navigation): Master the cd command to move around your file system. - [Chain grep, sort, and wc in one command](https://windows-cli.arnost.org/en/blog/bash-ninja-drill): Count matching lines and filter a sorted list by combining cat, grep, sort, and wc. - [Bash Ping Curl](https://windows-cli.arnost.org/en/blog/bash-ping-curl): Learn about Bash Ping Curl - [Send command output through a pipe](https://windows-cli.arnost.org/en/blog/bash-pipes): Use | to feed one command into the next, then chain grep and wc. - [Practice: File Organization](https://windows-cli.arnost.org/en/blog/bash-practice-cleanup): Practice organizing files using mkdir and mv commands. - [Practice: Data Extraction](https://windows-cli.arnost.org/en/blog/bash-practice-data-extraction): Combine grep, pipes, and redirection to extract and analyze data. - [Bash Privileges](https://windows-cli.arnost.org/en/blog/bash-privileges): Learn about Bash Privileges - [Process Guard Drill](https://windows-cli.arnost.org/en/blog/bash-process-drill): Filter and manage processes. - [Save command output to a file](https://windows-cli.arnost.org/en/blog/bash-redirection): Overwrite with >, append with >>, then check the file with cat. - [Removing Files and Directories](https://windows-cli.arnost.org/en/blog/bash-remove-files): Learn rm and rmdir to delete files and directories safely. - [Bash Script Loops](https://windows-cli.arnost.org/en/blog/bash-script-loops): Learn about Bash Script Loops - [Bash Script Math](https://windows-cli.arnost.org/en/blog/bash-script-math): Learn about Bash Script Math - [SORT - Order Data](https://windows-cli.arnost.org/en/blog/bash-sort-basic): Sort lines of text files. - [SORT - Unique Lines](https://windows-cli.arnost.org/en/blog/bash-sort-unique): Sort and remove duplicates. - [Bash Ssh](https://windows-cli.arnost.org/en/blog/bash-ssh): Learn about Bash Ssh - [Bash System Health](https://windows-cli.arnost.org/en/blog/bash-system-health): Learn about Bash System Health - [Bash Tar](https://windows-cli.arnost.org/en/blog/bash-tar): Learn about Bash Tar - [Create empty files with touch](https://windows-cli.arnost.org/en/blog/bash-touch): Make a new empty file, or update the timestamp on a file that already exists. - [Count lines with wc and sort a file](https://windows-cli.arnost.org/en/blog/bash-wc-lines): Use wc -l to count lines, then sort to put names in order. - [Bash Zip](https://windows-cli.arnost.org/en/blog/bash-zip): Learn about Bash Zip - [Create Your First Commented Batch File](https://windows-cli.arnost.org/en/blog/bat-file-with-rem): Write a real .bat script with REM comments using the built-in code editor. - [Introduction to Batch Files](https://windows-cli.arnost.org/en/blog/batch-files): Automate your daily tasks. - [Best Websites to Practice Windows Commands Online](https://windows-cli.arnost.org/en/blog/best-sites-practice-windows-commands-online): Compare browser CMD practice options: interactive lessons, sandboxes, and docs. Windows CLI vs Microsoft Learn, W3Schools, and remote desktops. - [Navigate with CD](https://windows-cli.arnost.org/en/blog/change-directory): Hop between folders like a pro. - [How to Clear the CMD Screen with cls](https://windows-cli.arnost.org/en/blog/clear-screen): Clear a cluttered Windows Command Prompt with cls. It hides visible output without deleting files or command history; compare it with PowerShell and Bash. - [Clip Command](https://windows-cli.arnost.org/en/blog/clip-command): Copy command output directly to your clipboard. - [CMD vs PowerShell: Which Should You Learn First?](https://windows-cli.arnost.org/en/blog/cmd-vs-powershell-which-first): Learn CMD first for classic Windows paths, batch habits, and legacy support. Add PowerShell when you need objects, pipelines, and modern automation. - [Command Chaining with &&](https://windows-cli.arnost.org/en/blog/command-chaining): Run dependent commands in sequence so the next step executes only when the previous one succeeds. - [How to Copy a File in CMD with copy](https://windows-cli.arnost.org/en/blog/copy-command): Copy a file or a wildcard set in Command Prompt. Learn copy vs xcopy, overwrite prompts, and the /y switch. - [How to Create a Text File in CMD with copy con](https://windows-cli.arnost.org/en/blog/copy-con): Create a small text or batch file in CMD without Notepad: start copy con, enter each line, then press Ctrl+Z and Enter to save. - [Cursor AI Prompting Guide](https://windows-cli.arnost.org/en/blog/cursor-ai-prompting-guide): Guide Cursor toward safer, reviewable code changes with file scope, repository context, constraints, acceptance criteria, and tests. - [The Delete Command](https://windows-cli.arnost.org/en/blog/del-command): Remove unwanted files forever. - [DIR Options - Command Switches](https://windows-cli.arnost.org/en/blog/dir-options): Learn how to use /? to discover command options - [The Dir Command](https://windows-cli.arnost.org/en/blog/directory-listing): Master the art of listing files. - [The Echo Command](https://windows-cli.arnost.org/en/blog/echo-command): Learn how to speak to the terminal. - [Exit Terminal (exit)](https://windows-cli.arnost.org/en/blog/exit-terminal): Closing time. - [Fc Command](https://windows-cli.arnost.org/en/blog/fc-command): Compare files and find differences instantly. - [Find Command](https://windows-cli.arnost.org/en/blog/find-command): Search for specific text strings within files. - [How to Search Text in Files with findstr](https://windows-cli.arnost.org/en/blog/findstr-command): findstr is the Command Prompt way to search file contents. Recurse with /s, ignore case with /i, and compare findstr vs find vs grep. - [GitHub Copilot Prompting Best Practices](https://windows-cli.arnost.org/en/blog/github-copilot-prompting-best-practices): Get better GitHub Copilot results with clear task descriptions, relevant repository context, constraints, and testable acceptance criteria. - [The Help Command](https://windows-cli.arnost.org/en/blog/help-command): Never get lost again. - [How Senior Developers Use AI Differently](https://windows-cli.arnost.org/en/blog/how-senior-developers-use-ai): Useful engineering patterns for using AI: contextual prompts, analysis first, smaller changes, evidence, review, and validation. - [How to Get Better Results from Claude Code](https://windows-cli.arnost.org/en/blog/how-to-get-better-results-from-claude-code): Get more reliable Claude Code results with scoped context, analysis before edits, explicit constraints, focused tests, and incremental changes. - [How to Prompt ChatGPT for Coding](https://windows-cli.arnost.org/en/blog/how-to-prompt-chatgpt-for-coding): Use ChatGPT for coding with focused context, constraints, and acceptance criteria that produce code you can inspect and validate. - [How to Write Better AI Prompts: The Missing Context That Makes AI Suggestions Actually Useful](https://windows-cli.arnost.org/en/blog/how-to-write-better-ai-prompts): Write better AI prompts with the context that changes decisions: scope, assumptions, outcomes, constraints, and evidence. - [The MKDIR Command](https://windows-cli.arnost.org/en/blog/mkdir-command): Learn how to create directories from the command line. - [How to Move Files and Folders in CMD with move](https://windows-cli.arnost.org/en/blog/move-command): Learn to move files and folders, rename them, and control overwrite prompts with the CMD move command and /y switch. - [Opening Files in a Text Editor](https://windows-cli.arnost.org/en/blog/open-in-editor): Learn to open and edit files with Notepad directly from the command line. - [Power Features](https://windows-cli.arnost.org/en/blog/power-features): Master powercfg workflows for battery diagnostics, sleep policies, and reliable recovery actions. - [How to Check Sleep States and Make a Battery Report with powercfg](https://windows-cli.arnost.org/en/blog/powercfg): Use powercfg /a to list sleep states and powercfg /batteryreport to save a battery HTML report. What the browser simulator covers vs a real Windows PC. - [Practical: Batch Intro](https://windows-cli.arnost.org/en/blog/practical-batch-intro): Write your first automation script. - [Practical: Directory Ops](https://windows-cli.arnost.org/en/blog/practical-directory-ops): Real-world scenario: Setting up a project structure. - [Practical: Echo Files](https://windows-cli.arnost.org/en/blog/practical-echo-files): Real-world scenario: Creating logs and config files. - [Practical: Attributes](https://windows-cli.arnost.org/en/blog/practical-file-attributes): Real-world scenario: Securing and hiding sensitive files. - [Practical: File Mgmt](https://windows-cli.arnost.org/en/blog/practical-file-management): Real-world scenario: Organize your downloads folder. - [Practical: Relative Paths](https://windows-cli.arnost.org/en/blog/practical-pro-relative-paths): Navigate like a pro using .. and . - [Practical: Tasklist](https://windows-cli.arnost.org/en/blog/practical-pro-tasklist): Scenario: identifying memory hogs. - [Practical: Ver](https://windows-cli.arnost.org/en/blog/practical-pro-ver): Scenario: Checking OS compatibility. - [How to Check Your Windows User and Admin Groups with whoami](https://windows-cli.arnost.org/en/blog/practical-pro-whoami): Use whoami, whoami /groups, and whoami /priv in CMD to see the account, groups, and privileges a script is actually running with. - [Practical: Text Ops](https://windows-cli.arnost.org/en/blog/practical-text-processing): Real-world scenario: Filtering logs and extracting data. - [Where Can I Practice CMD Online?](https://windows-cli.arnost.org/en/blog/practice-cmd-online): Yes — practice CMD online free in your browser with Windows CLI. Guided lessons and a sandbox; no Windows PC required. - [Prompt Engineering Examples for Software Engineers](https://windows-cli.arnost.org/en/blog/prompt-engineering-examples-for-software-engineers): Concrete prompt engineering examples for debugging, refactoring, tests, architecture, code review, and documentation. - [Prompt Engineering for Developers](https://windows-cli.arnost.org/en/blog/prompt-engineering-for-developers): Practical prompt engineering for developers: scope implementation work, request evidence, preserve constraints, and validate results. - [Prompt Templates for Debugging Production Issues](https://windows-cli.arnost.org/en/blog/prompt-templates-for-debugging-production-issues): Reusable AI prompts for production debugging: collect evidence, test hypotheses, apply a small fix, and validate safely. - [Prompt Templates for Refactoring Code](https://windows-cli.arnost.org/en/blog/prompt-templates-for-refactoring-code): Reusable AI prompt templates for safe refactoring that preserve behavior, limit scope, require tests, and define validation. - [Clear-Host - Clear the Screen](https://windows-cli.arnost.org/en/blog/ps-clear): Learn to clear terminal output - [Copy Files in PowerShell](https://windows-cli.arnost.org/en/blog/ps-copy-files): Duplicate files using Copy-Item. - [Create Files in PowerShell](https://windows-cli.arnost.org/en/blog/ps-create-files): Learn to create new files with New-Item. - [Write-Output - Display Messages](https://windows-cli.arnost.org/en/blog/ps-echo): Learn to display text with Write-Output - [Discover Commands with Get-Command](https://windows-cli.arnost.org/en/blog/ps-getcommand): Find PowerShell commands using Get-Command. - [Get Help in PowerShell](https://windows-cli.arnost.org/en/blog/ps-help): Learn how to use Get-Help to discover command documentation. - [PowerShell Basics](https://windows-cli.arnost.org/en/blog/ps-intro): Start with PowerShell Get-Location and Get-ChildItem. - [List Files with Parameters in PowerShell](https://windows-cli.arnost.org/en/blog/ps-ls-flags): Use Get-ChildItem parameters to inspect files and folders. - [Get-ChildItem Options](https://windows-cli.arnost.org/en/blog/ps-ls-options): Learn how to use Get-Help to discover command options - [Create Directories in PowerShell](https://windows-cli.arnost.org/en/blog/ps-mkdir): Build directory structures with New-Item. - [Move and Rename Files in PowerShell](https://windows-cli.arnost.org/en/blog/ps-move-rename): Relocate and rename files using Move-Item. - [Navigate Directories in PowerShell](https://windows-cli.arnost.org/en/blog/ps-navigation): Master the cd command to navigate your file system. - [Powerful Piping in PowerShell](https://windows-cli.arnost.org/en/blog/ps-piping): Chain commands together with pipes for advanced operations. - [Practice: Advanced Filtering Challenge](https://windows-cli.arnost.org/en/blog/ps-practice-advanced): Master pipelines with a real-world data challenge. - [Practice: File Organization Challenge](https://windows-cli.arnost.org/en/blog/ps-practice-cleanup): Combine file operations to organize your system. - [Delete Files in PowerShell](https://windows-cli.arnost.org/en/blog/ps-remove-files): Safely remove files using Remove-Item. - [Revision - Let's Practice!](https://windows-cli.arnost.org/en/blog/ps-revision-1): Revise what you have learned so far ## POWERSHELL - [PowerShell Manipulation: Cleanup Rehearsal](https://windows-cli.arnost.org/en/blog/ps-cleanup-rehearsal): Practice Remove-Item recurse and wildcard patterns safely before real cleanup work. - [PowerShell Self-Sufficiency: Content Briefing](https://windows-cli.arnost.org/en/blog/ps-content-briefing): Read briefing files with Get-Content before running follow-up commands. - [PowerShell Manipulation: Copy and Move Drill](https://windows-cli.arnost.org/en/blog/ps-copy-move-drill): Practice Copy-Item and Move-Item as a safe two-step file handling sequence. - [PowerShell Ripple Effect: Filter Signal](https://windows-cli.arnost.org/en/blog/ps-filter-signal): Use Where-Object in pipelines to isolate relevant log files quickly. - [PowerShell Self-Sufficiency: Help Toolbelt](https://windows-cli.arnost.org/en/blog/ps-help-toolbelt): Use Get-Help -Examples to validate cmdlet syntax before execution. - [PowerShell Manipulation: New-Item Batch](https://windows-cli.arnost.org/en/blog/ps-newitem-batch): Create multiple files in one New-Item call with comma-separated paths. - [PowerShell Orientation: Listing Scan](https://windows-cli.arnost.org/en/blog/ps-orient-listing-scan): Inspect directory state with Get-ChildItem pipelines before taking action. - [PowerShell Orientation: Location Anchors](https://windows-cli.arnost.org/en/blog/ps-orient-location-anchors): Use Get-Location as a repeatable path anchor before file or process operations. - [PowerShell Orientation: Parent Loop](https://windows-cli.arnost.org/en/blog/ps-orient-parent-loop): Recover quickly with Set-Location .. and keep path control during deeper navigation. - [PowerShell Orientation Practice: Route Map](https://windows-cli.arnost.org/en/blog/ps-orient-practice-map): Combine Set-Location and Get-ChildItem in one route-check command sequence. - [Premium: PowerShell Command Hunt](https://windows-cli.arnost.org/en/blog/ps-premium-command-hunt): Use Get-Help and Get-Command to discover safe syntax before high-risk operations. - [Premium: PowerShell Incident Lab](https://windows-cli.arnost.org/en/blog/ps-premium-incident-lab): Practice production-style pipelines for log isolation and process pressure triage. - [PowerShell Ripple Practice: Incident Triage](https://windows-cli.arnost.org/en/blog/ps-ripple-practice-incident): Run two-step log and process triage pipelines with repeatable, operator-grade output. ## BASH - [Bash Self-Sufficiency: apropos Search](https://windows-cli.arnost.org/en/blog/bash-apropos-intro): Discover unfamiliar commands by searching manual descriptions with apropos. - [Bash Self-Sufficiency: Cat Briefing](https://windows-cli.arnost.org/en/blog/bash-cat-briefing): Use cat to read runbooks and incident notes instantly without leaving the terminal. - [chmod Numbers Explained: 600, 644, 700, and 755](https://windows-cli.arnost.org/en/blog/bash-chmod-numeric): Decode numeric chmod permissions, choose common file and directory modes, verify the result, and avoid unsafe recursive changes. - [How to Change File Ownership with chown in Bash](https://windows-cli.arnost.org/en/blog/bash-chown): Use chown to change a file or directory owner and group, verify the result, and avoid unsafe recursive ownership changes. - [Bash Manipulation: Cleanup Rehearsal](https://windows-cli.arnost.org/en/blog/bash-cleanup-rehearsal): Practice file and directory cleanup patterns safely before using them in real workflows. - [Bash Manipulation: Copy and Move Drill](https://windows-cli.arnost.org/en/blog/bash-copy-move-drill): Use cp and mv as a safe two-step flow for duplication, review, and final naming. - [Bash Ripple Effect: Grep Signal](https://windows-cli.arnost.org/en/blog/bash-grep-signal): Extract actionable log lines quickly with case-insensitive grep filters. - [Bash Self-Sufficiency: Help Toolbelt](https://windows-cli.arnost.org/en/blog/bash-help-toolbelt): Use --help and man-style output to verify syntax before executing file operations. - [How to Find and Stop a Stuck Process Safely in Bash](https://windows-cli.arnost.org/en/blog/bash-kill-process): Confirm a process and its PID, send SIGTERM first, verify the result, and reserve SIGKILL for a process that will not stop cleanly. - [SSH Key Permissions: When to Use chmod 600 or 700](https://windows-cli.arnost.org/en/blog/bash-lockdown-drill): Use chmod 600 for a private SSH key and 700 for its directory, then verify both permissions and ownership before reconnecting. - [Bash Self-Sufficiency: MAN Quick Scan](https://windows-cli.arnost.org/en/blog/bash-man-quick-scan): Use man pages to grab exact syntax and options without leaving the terminal. - [Bash Orientation: CD Loop](https://windows-cli.arnost.org/en/blog/bash-orient-cd-loop): Practice child and parent directory movement until path changes feel automatic. - [Bash Orientation Practice: Map Run](https://windows-cli.arnost.org/en/blog/bash-orient-practice-map): Chain navigation and listing in one move to verify route and destination state. - [Bash Ripple Effect: Pipe Stack](https://windows-cli.arnost.org/en/blog/bash-pipe-stack): Chain cat, grep, and wc into a repeatable multi-stage text processing stack. - [Premium: Bash Incident Drill](https://windows-cli.arnost.org/en/blog/bash-premium-incident-drill): Run a safe release triage workflow: stage, extract errors, and verify impact volume. - [Premium: Bash Log Hunt](https://windows-cli.arnost.org/en/blog/bash-premium-log-hunt): Hunt deployment failures fast with grep pipelines, counts, and saved incident notes. - [How to List Running Processes in Bash with ps](https://windows-cli.arnost.org/en/blog/bash-ps-list): Use ps in Bash to list running processes, read PID and owner columns, inspect one process, and choose when a live top view is more useful. - [PWD - Print Working Directory](https://windows-cli.arnost.org/en/blog/bash-pwd): Find your current directory before running file commands - [Bash Ripple Effect: Redirect Ledger](https://windows-cli.arnost.org/en/blog/bash-redirect-ledger): Use > and >> redirection to build simple, auditable text ledgers in Bash. - [Bash Ripple Practice: Incident Combo](https://windows-cli.arnost.org/en/blog/bash-ripple-practice-incident): Run a two-step incident extraction and counting workflow with reproducible outputs. - [Premium: Bash Script Automation](https://windows-cli.arnost.org/en/blog/bash-script-automation): Combine loops and conditionals to build scripts that run tasks automatically and respond to system state. - [How to Write a Safer Bash Backup Script with tar](https://windows-cli.arnost.org/en/blog/bash-script-finale): Build a Bash backup script that validates its source, avoids silent overwrites, removes partial archives, and verifies the tar file. - [Premium: Bash Script Functions](https://windows-cli.arnost.org/en/blog/bash-script-functions): Write reusable functions to eliminate code duplication and build maintainable automation scripts. - [How to Write and Run Your First Bash Script](https://windows-cli.arnost.org/en/blog/bash-script-intro): Create a Bash script, check its syntax, make it executable, and understand the difference between bash script.sh and ./script.sh. - [Premium: Bash Script Practice](https://windows-cli.arnost.org/en/blog/bash-script-practice): Combine variables, functions, loops, and conditionals to solve a realistic multi-step scenario. - [Premium: Bash Script Variables](https://windows-cli.arnost.org/en/blog/bash-script-variables): Master bash variables and arithmetic to build reusable automation scripts that adapt to different environments. - [Bash Self-Sufficiency Practice: Build From Docs](https://windows-cli.arnost.org/en/blog/bash-self-practice-setup): Combine documentation lookup and nested directory creation in one repeatable operator flow. - [Bash Manipulation: Touch Batch](https://windows-cli.arnost.org/en/blog/bash-touch-batch): Create multiple starter files in one command to speed up repeatable setup work.