会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
Azure's Blog
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
22
23
24
25
26
27
28
29
30
···
76
下一页
2022年1月22日
sed支持扩展正则表达式
摘要: 需求 使用sed对ubuntu apt source快速换源,希望同时兼容两种地址 deb http://archive.ubuntu.com/ubuntu/ bionic main restricted deb http://cn.archive.ubuntu.com/ubuntu/ bionic
阅读全文
posted @ 2022-01-22 14:25 azureology
阅读(387)
评论(0)
推荐(0)
2022年1月21日
修改swap分区大小
摘要: 需求 安装时分配了过量的swap分区,需要减小容量。 实现 删除原有swap 使用sudo swapoff -a关闭swap后删除swap分区 使用gparted将swap分区未分配空间并入/分区 新增调整swap sudo fallocate -l 2G /swapfile sudo chmod
阅读全文
posted @ 2022-01-21 14:28 azureology
阅读(194)
评论(0)
推荐(0)
C++快速初始化vector
摘要: 需求 代码需要使用给定值初始化vector 实现 使用vector::resize(size_type n, const value_type& val)进行初始化。 std::vector<Class*> container; container.resize(10, nullptr); 当n大于
阅读全文
posted @ 2022-01-21 14:21 azureology
阅读(212)
评论(0)
推荐(0)
Ubuntu命令安装/添加拼音输入法
摘要: 需求 希望通过命令安装拼音输入法,方便写成脚本调用。 实现 需要重启生效 sudo apt install -y ibus-libpinyin gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us'), ('ibus'
阅读全文
posted @ 2022-01-21 11:38 azureology
阅读(150)
评论(0)
推荐(0)
解决Linux下解压zip文件乱码
摘要: 问题 下载zip文件使用unzip解压中文出现乱码 解决 增加GBK编码参数 unzip -O GBK archive.zip
阅读全文
posted @ 2022-01-21 11:29 azureology
阅读(70)
评论(0)
推荐(0)
上一页
1
···
22
23
24
25
26
27
28
29
30
···
76
下一页
公告