165 字
1 分钟
【Manual】Linux常用命令
Linux常用命令
包管理
pacman
- 使用Reflector 自动选择最快镜像
# 选择中国地区最快的 10 个镜像sudo reflector --country China --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
# 或选择全球最快的镜像sudo reflector --latest 20 --protocol https --sort rate --save /etc/pacman.d/mirrorlist其他配置
Windows双系统时间同步
Windows 使用的是LocalTime机制,也就是会直接读取BIOS中的时间当作本地时间。而 Ubuntu 使用的时间机制是UTC机制,也就是格林尼治时间,会在BIOS时间的基础上加上时区(若Ubuntu设置的地区是Shanghai,则会在BIOS的基础上+8)。因此需要在Ubuntu中将时间机制更改为LocalTime模式。
# 安装ntpdate工具实现时间同步sudo apt install ntpdate
# 设置ntp服务器sudo ntpdate time.windows.com
# 更改系统时间机制,更改为LocalTimesudo hwclock --localtime --systohcTIP除了windows的ntp时间服务器之外,还有如下ntp服务器可以选择:
# 阿里云授时服务器ntp.aliyun.com# 腾讯云授时服务器time1.cloud.tencent.comtime2.cloud.tencent.comtime3.cloud.tencent.comtime4.cloud.tencent.comtime5.cloud.tencent.com# 清华大学授时服务器ntp.tuna.tsinghua.edu.cn# 苹果授时服务器time1.apple.comtime2.apple.comtime3.apple.comtime4.apple.comtime5.apple.comtime6.apple.comtime7.apple.com# Google授时服务器time1.google.comtime2.google.comtime3.google.comtime4.google.com
分享
如果这篇文章对你有帮助,欢迎分享给更多人!
【Manual】Linux常用命令
https://onemom.top/posts/linux_arch日常/ 部分信息可能已经过时
相关文章 智能推荐