天天看點

好工具推薦系列:Windows打開CMD指令的快捷鍵/代理上網的方法/Cmder

右鍵打開cmd指令

1、進入具體某個檔案夾的路徑

2、滑鼠點選檔案夾彈出右鍵菜單,點選的同時要按住shift鍵

3、彈出的菜單會有“在此處打開指令視窗”選項。

恭喜(#^.^#)

管理者權限打開cmd指令

Windows桌面-開始-所有程式-附件-指令提示符,右鍵菜單,管理者權限打開

Windows cmd代理上網

Windows使用代理網絡上網時,如果需要配置cmd指令行也能上網,使用如下指令配置:

=======管理者打開cmd,設定代理,source=ie指的是和ie浏覽器的代理設定保持一緻=========

netsh winhttp import proxy source=ie

注意:此指令需要在管理者權限下配置。Windows桌面-開始-所有程式-附件-指令提示符,右鍵菜單,管理者權限打開

=======如何檢視代理=========

netsh winhttp show proxy

=======如何取消代理=========

netsh winhttp reset proxy

git cmd輸入指令:

http代理:

set http_proxy=http://127.0.0.1:8000

set https_proxy=http://127.0.0.1:8000

set http_proxy=socks5://127.0.0.1:8000

set https_proxy=socks5://127.0.0.1:8000

git http代理:【推薦使用】

git config --global http.proxy

http://127.0.0.1:8000

git config --global https.proxy

設定成功,會記錄在C:\Users\firecat\.gitconfig,文本内容是:

[core]

autocrlf = true

[credential "helperselector"]

selected = manager

[http]

proxy =

http://127.0.0.1:8100

[https]

git socks5代理:

git config --global http.proxy socks5://127.0.0.1:8000

git config --global https.proxy socks5://127.0.0.1:8000

取消代理

git config --global --unset http.proxy

git config --global --unset https.proxy

檢視代理

git config --get --global http.proxy

git config --get --global https.proxy

git config --get --global http.proxy socks5

git config --get --global https.proxy socks5

增強版cmd終端工具

cmder【推薦】

Lovely console emulator package for Windows。安裝路徑必須在英文路徑,不能有中文。

https://cmder.net/ https://github.com/cmderdev/cmder https://www.cnblogs.com/michael-xiang/p/10466074.html

教程

babun

http://babun.github.io/ https://github.com/babun/babun

powercmd

http://www.powercmd.com/

terminal

微軟新開發的終端工具,隻能在Win10使用,不支援Win7

https://github.com/microsoft/terminal

參考文獻

https://www.jianshu.com/p/b9047a59ffc9