工具箱3:ubuntu常用

1、/etc/apt/sources.list

# Ubuntu20.04 信息
# Ubuntu22.04 信息

2、/etc/resolv.conf【DNS】

domain openstacklocal
search openstacklocal

nameserver 10.10.10.10

search huawei.com

3、/etc/profile

4、/root/.bashrc

5、证书

/etc/ssl/certs/ca-certificates.crt

6、pip源

pip config list

pip3 config set global.index-url https://pypi.org/simple
pip3 config set install.trusted-host pypi.org

pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip3 config set install.trusted-host pypi.tuna.tsinghua.edu.cn

# /root/.pip/pip.conf

[global]
index-url=http://mirrors.tools.huawei.com/pypi/simple/

[install]
trusted-host=mirrors.tools.huawei.com

7、pip安装

下载git仓库安装

pip install git+https://github.com/user/repo.git@branch_name
pip install git+https://github.com/user/repo.git@tag_name
pip install git+https://github.com/user/repo.git@commit_hash

8、查找shell的历史记录

# /root/.inputrc - 配置Readline行为
# 启用不区分大小写的自动补全
set completion-ignore-case on

# 显示可能的补全列表,而不是嘟嘟声
set bell-style none

# 允许在补全时循环浏览选项
set show-all-if-ambiguous on

# 命令行编辑模式下的光标样式
set editing-mode vi

# 保存历史记录的大小
set history-size 10000

# 忽略连续重复的命令
set histignoredups on

# 确保箭头键正常工作
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e[5~": history-search-backward
"\e[6~": history-search-forward

9、server certificate verification failed. CAfile: none CRLfile: none

git config --global http.sslVerify false

10、vscode

可启用 Workbench > Editor: Wrap Tabs 功能
开发常用工具箱(杂) 文章被收录于专栏

git docker ubuntu shell gdb

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务