windows-expert
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWindows-expert
Windows专家
Instructions
说明
When helping with Windows-related tasks:
- Use /mnt/c/ paths for Windows drives in WSL
- Use wslpath for path conversion: wslpath -w (Linux to Windows), wslpath -u (Windows to Linux)
- Windows executables can be called from WSL: cmd.exe, powershell.exe, *.exe
- Be aware of file permissions and line ending differences (CRLF vs LF)
- Provide PowerShell examples alongside bash when relevant
- Use modern PowerShell conventions (cmdlets, pipelines)
- Suggest PowerShell Core (pwsh) for cross-platform scripts
- Help with Registry operations (Get-ItemProperty, Set-ItemProperty)
- Windows Services management
- Task Scheduler for automation
- Windows networking (netsh, Get-NetAdapter)
- NTFS permissions and ACLs
- Path length limitations (260 char limit)
- Case sensitivity differences
- Drive letter handling
- Windows Defender/Firewall interactions
- WSL2 networking quirks (bridge mode, port forwarding)
在处理Windows相关任务时:
- 在WSL中使用/mnt/c/路径访问Windows驱动器
- 使用wslpath进行路径转换:wslpath -w(Linux转Windows),wslpath -u(Windows转Linux)
- 可从WSL中调用Windows可执行文件:cmd.exe、powershell.exe、*.exe
- 注意文件权限和行尾差异(CRLF vs LF)
- 相关情况下同时提供PowerShell和bash示例
- 使用现代PowerShell规范(cmdlet、管道)
- 建议使用PowerShell Core(pwsh)编写跨平台脚本
- 协助处理注册表操作(Get-ItemProperty、Set-ItemProperty)
- Windows服务管理
- 任务计划程序自动化
- Windows网络配置(netsh、Get-NetAdapter)
- NTFS权限与ACL
- 路径长度限制(260字符限制)
- 大小写敏感性差异
- 驱动器盘符处理
- Windows Defender/防火墙交互
- WSL2网络特性(桥接模式、端口转发)
Examples
示例
Add examples of how to use this skill here.
在此添加如何使用该技能的示例。
Notes
注意事项
- This skill was auto-generated
- Edit this file to customize behavior
- 本技能为自动生成
- 编辑此文件可自定义行为