powershell#列出所有的环境变量lsenv:#查看gopath环境变量的内容lsenv:gopath 或$env:gopath# 查看path环境变量的内容,使用;进行分隔$env:path-Split;# 刷新DNS缓存ipconfig /flushdns# windows下查看占用8080端口的进程netstat-ano|findstr8080# powershell中查看历史命令get-history# 将当前终端所在的目录打开(文件资源管理器)explorer.#查询当前系统的活动代码页chcp#查看命令位置Get-Command python Get-Command vue Get-CommandnpmGet-Command jupyter Get-CommandnodeGet-CommandlsGet-Command ipconfig#winget是Windows包管理器winget uninstall Microsoft.OneDrive#查看策略Get-ExecutionPolicy Get-ExecutionPolicy-ListSet-ExecutionPolicy-ExecutionPolicyAllSigned CurrentUser Set-ExecutionPolicy-ExecutionPolicyRemoteSigned CurrentUser#windows的dll文件搜索策略1.应用程序所在目录2.C:\Windows\System32(64位dll),C:\Windows\SysWOW64(32位dll)3.PATH环境变量cmd#查看可执行程序的位置where java,where python,where jupyter,where vue,where yarn,wherenpm#查看cmd历史命令doskey/HISTORY或者F7键#cmd以二进制方式合并文件copy /b .\fd6e63022049-*.ts .\res.ts#cmd中批量下载1183个ts文件curl-Ohttps://6e632049/ts/3022049-[0-1182].ts#返回#1.使用的dns服务器的域名和地址#2.domain-name的ip地址nslookupdomain-name进不去一些网站,显示cant reach this page1.修改DNS地址(自动改手动,手动改自动)2.ipconfig /flushdns#刷新DNS缓存3.打开新的edge窗口,重新试试4.关闭所有的vpnhttps://stackoverflow.com/questions/68068359/gitbash-not-showing-up-as-a-terminal-option-in-visual-studio-code/70407051#70407051HKEY_CLASSES_ROOT\Directory\Background\shell:空白区域右键菜单 HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell:文件夹对象右键菜单#在Windows桌面右键菜单,增加打开文件资源管理器选项HKEY_CLASSES_ROOT\Directory\Background\shell 右键点击shell,新建项,名字随意(不要中文,英文最好见名知义,例如open_file_explorer)在open_file_explorer中(HKEY_CLASSES_ROOT\Directory\Background\shell\open_file_explorer)1.双击右侧的默认,设置值(例如:打开文件管理器),(这个是windows桌面右键时菜单中显示的名称)2.右键右侧空白处,新建字符串值,命名为Icon,双击Icon,将其值设置为explorer.exe(这个是windows桌面右键时菜单中显示的图标)(HKEY_CLASSES_ROOT\Directory\Background\shell\open_file_explorer\command)右键点击open_file_explorer,新建项,命名为command,选中command项,双击右侧的默认,设置值为explorer.exe想要默认打开的路径不加后面的路径打开的是文件资源管理器的快速访问页面 路径的双引号要用英文不然打开的是user_name/Documents目录https://dashdash.io/https://www.kancloud.cn/thinkphp/linux-command-line/39431