个人常用脚本及指令备份
一键DD网络重装脚本
bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -p 密码 -port 端口
其它脚本
https://git.beta.gs/
Debian,Ubuntu更新
apt update && apt upgrade -y
设置编码
dpkg-reconfigure locales
设置时区
dpkg-reconfigure tzdata
Debian,Ubuntu开启BBR
#修改系统变量
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
#保存生效
sysctl -p
#查看内核是否已开启BBR
lsmod | grep bbr
#显示如下,即成功
tcp_bbr 20480 2
Screen
#新建test窗口
screen -S test
#查看窗口
screen -ls
#退出窗口
ctrl+a,d
#关闭窗口
exit
#接入test窗口
screen -r test
#结束进程
kill -9 id
screen -wipe
Git
#配置同户名邮箱
git config --global user.name “idarku”
git config --global user.email “i.1999@qq.com”
#克隆远程仓库
git clone https://github.com/idarku/img.git
#添加当前目录文件
git add .
#提交说明
git commit -m 'ii.do'
#更新到仓库
git push origin main
待更新...
感谢大佬,学习
牛皮,一个手贱用x瑞脚本的精简系统把我甲骨文给干的失联了::quyin:hematemesis::
@(你懂的)
牛逼plus
学习学习hjj
::quyin:hematemesis::学习