Linux系统设置上海时间(24小时制)
📅 2026/7/18 6:01:51
👁️ 阅读次数
📝 编程学习
设置为北京时间(Asia/Shanghai)
方法一
sudo timedatectl set-timezone Asia/Shanghai设置显示24小时制
vim /etc/profile export LC_TIME=C source /etc/profile方法2
sudo ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime echo "Asia/Shanghai" | sudo tee /etc/timezone date
编程学习
技术分享
实战经验