111 字
1 分钟
Linux 实用小技巧合集

Intel GPU 监控#

Terminal window
apt install intel-gpu-tools
intel_gpu_top

vim 中文乱码修复#

编辑 ~/.vimrc,加入以下内容:

set termencoding=utf-8
set encoding=utf8
set fileencodings=utf8,ucs-bom,gbk,cp936,gb2312,gb18030

/tmp 临时扩容#

Terminal window
sudo mount -o remount,size=16G /tmp

添加 sudoer 免密#

Terminal window
echo "youruser ALL=NOPASSWD:ALL" > /etc/sudoers.d/youruser

Windows 兼容应用商店 Python 冲突#

Windows 下如果安装了 Python 但 python3 找不到,检查并删除:

C:\Users\<用户名>\AppData\Local\Microsoft\WindowsApps\python.exe

该路径下的 python 是应用商店的跳转占位符,删除后系统将使用真实安装的 Python。

Linux 实用小技巧合集
https://iiii.fun/posts/linux/linux-tips/
作者
慶靈
发布于
2025-01-13
许可协议
CC BY-NC-SA 4.0