WSL2 Ubuntu
Windows Subsystem for Linux(简称WSL)是一个在Windows 10上能够运行原生Linux二进制可执行文件(ELF格式)的兼容层。
Keyboard Shotcut
windows terminal wake-up window: Win + ` 切换命令面板: Shift + Ctrl+t 切换全屏: f11 下一个选项卡: Ctrl + Tab 逆时针拆分窗口: Shift + Alt + D 垂直拆分窗口: Shift + Alt + + 水平拆分窗口: Shift + Alt + - 关闭窗口: Shift + Ctrl + w 光标切换不同窗口: Alt + 方向键
Ubuntu Terminal
- Network settings :
//turn on
export http_proxy=http://XXX.XXX.XXX.XXX:port
or
export https_proxy=https://XXX.XXX.XXX.XXX:port
or
export ALL_PROXY=socks5://XXX.XXX.XXX.XXX:port
//turn off
unset http_proxy
or
unset https_proxy
or
unset ALL_PROXY
a. write shell script build a file called " teminal_proxy.sh",including two functions.
function proxy_on(){
export ALL_PROXY=socks5://XXX.XXX.XXX.XXX:port
export http_proxy=http://XXX.XXX.XXX.XXX:port
export https_proxy=https://XXX.XXX.XXX.XXX:port
echo -e "on"
}
function proxy_off(){
unset ALL_PROXY
unset http_proxy
unset https_proxy
echo -e "off"
}
b. recite inital config file
vim ~/.zshrc
or
vim ~/.bashrc
the ending of file add one sentence of command:
source /path1/path2/terminal_proxy.sh
**c.test **
proxy_on
curl github.com
proxy_off
2. install software
a.install command
sudo apt golang-go
b.unload command
sudo apt purge golang-go //删除软件不彻底。
or
sudo apt-get remove golang-go
sudo apt-get remove --auto-remove golang-go
rm -rvf /usr/local/go/
3. 在终端中显示Linux系统信息
neofetch
|