- 半透明窗口
- 查看历史命令: F7
- 切换全屏/还原: Alt + 回车
- 鼠标右键粘贴剪贴板内容
注意:cmd terminal 不支持跨行命令。
where pythonecho hello > hello.mdtype hello.mdmove hello.md helloworld.mddel helloworld.mdcopy hello1.md hello2.mdmkdir a\b\c -pmove a a1rd /s/q a1xcopy D:\aspnet C:\aspnet /E /H /C /I说明:把 D 盘下的 aspnet 目录及其子目录复制 C 盘下的 aspnet 目录;如果目标目录不存在,会自动创建;如果目标目录存在,会覆盖。
netstat -aon|findstr "8009"tasklist|findstr "78796"wmic process 78796 get commandlinewmic process where caption="java.exe" get caption,commandline /value- 创建压缩文件:jar -cvf 目标压缩文件 压缩目录/文件(多个目录/文件之间以空格间隔)
- jar -cvf ehcache.war META-INF/ WEB-INF/
- 查看压缩文件:jar -tvf 压缩文件
- jar -tvf ehcache.war
- 解压压缩文件:jar -xvf 压缩文件
- 查看 cmd 窗口字符编码: chcp
- 修改 cmd 窗口字符编码: chcp <字符编码>
- 字符编码对应代码:
- 65001——UTF-8
- 936——简体中文
- 950——繁体中文
- 437——美国/加拿大英语
- 932——日文
- 949——韩文
- 866——俄文
- 按下 Win + X ,选择 Device Manager,点击 Processors
- 打开 Task Manager,右键 CPU Graph,选择 Change Graph to -> Logical Processors