命令行note安装报错 8 5, 2021 1 min read Ubuntu命令行note工具使用起来很简洁方便,安装后启动有时会报错. 使用人少,修复简单却未能查到资料,特此记录修复方法. Bash note
Tree命令详解 1 26, 2021 3 min read 例如: 1 2 tree -C -L 3 -T "文件下载列表" -H "" -I "*.html|img|en-US|icons" --charset=utf8 -o index.html tree -C -L 3 -D -h --dirsfirst -F -T "文件下载列表" -H "" -I "*.html|*.sh" --charset=utf8 -o index.html 详解: Bash
命令行使用代理 10 23, 2020 1 min read 命令行使用代理 基本原理一样,触类旁通 设置环境变量,临时生效 1 2 3 4 export http_proxy=http://127.0.0.1:1080 export https_proxy=https://127.0.0.1:1080 export ftp_proxy="http://127.0.0.1:1080" export all_proxy="socks5://127.0.0.1:1080" 设置环境变量,永久生效 修改 ~/.bash.rc 1 2 3 4 5 6 export http_proxy="http://127.0.0.1:1080" export https_proxy="http://127.0.0.1:1080" export ftp_proxy="http://127.0.0.1:1080" export all_proxy="socks5://127.0.0.1:1080" # 无需代理的主机或域名,可使用通配符 export no_proxy="localhost, 127.0.0.1, ::1, 10.*.*.*," 取消设置环境变量 1 2 3 4 5 unset http_proxy unset https_proxy unset ftp_proxy unset all_proxy unset no_proxy apt-get代理,临时生效 在命令行临时带入 在apt命令后面增加-o选项 1 2 3 4 sudo apt-get -o Acquire::http::proxy="http://127.0.0.1:1080/" update sudo apt-get -o Acquire::https::proxy="https://127.0.0.1:1080/" update sudo apt-get -o Acquire::socks::proxy="socks5://127.0.0.1:1080/" update # 注意上面的使用'socks'是正确的,链接才是'socks5' apt-get代理,永久生效 修改 /etc/apt/apt.conf 1 2 3 4 Acquire::socks::proxy "socks5://127.0.0.1:1080/"; Acquire::http::proxy "http://127.0.0.1:1080/"; Acquire::https::proxy "https://127.0.0.1:1080/"; Acquire::ftp::proxy "ftp://127.0.0.1:1080/"; Bash 代理
Bash命令行的艺术 10 10, 2020 24 min read 🌍 Čeština ∙ Deutsch ∙ Ελληνικά ∙ English ∙ Español ∙ Français ∙ Indonesia ∙ Italiano ∙ 日本語 ∙ 한국어 ∙ Português ∙ Română ∙ Ру Bash Linux Shell
Linux启用SSH密钥登录 10 10, 2020 2 min read Linux启用SSH密钥登录 在某些时候,使用密码作为登录服务器的认证方式是不太安全的,为避免密码被暴力破解,许多时候可以采用ssh密钥登录服 SSH Bash
Ubuntu清除卸载后的软件包数据 10 10, 2020 1 min read Ubuntu清除卸载后的包数据 单独卸载包时清除配置 1 2 sudo apt-get 包名 --purge sudo apt-get purge 包名 卸载系统全部不用的包 1 sudo apt-get autoremove --purge 清除全部已卸载的包配置文件 1 sudo dpkg -l |grep Ubuntu Bash 卸载