Open chiwent opened 6 years ago
Linux在解压Windows的zip压缩文件时会出现乱码,可以用下面的简易脚本解决,可以将其软链接sudo ln -sf unzipcode.sh /usr/bin/unzipcode :
sudo ln -sf unzipcode.sh /usr/bin/unzipcode
#!/bin/sh unzip -d $2 -O cp936 $1
demo: unzipcode 解压生成目录 压缩文件
unzipcode 解压生成目录 压缩文件
无论是Windows还是Linux,在切换系统后都可能会出现时间不准的情况(Windows的情况更多)。在遇到这样的问题后需要我们手动设置与网上同步,Windows的直接控制面板即可。如果是Linux就稍微多一点步骤:
sudo apt-get install ntpdate sudo ntpdate -u ntp.sjtu.edu.cn
注意在更新时间的时候要先停止ntp(/etc/init.d/ntp)服务,不然会冲突
Windows + Linux双系统使用上的一些bug
压缩文件的编码问题
Linux在解压Windows的zip压缩文件时会出现乱码,可以用下面的简易脚本解决,可以将其软链接
sudo ln -sf unzipcode.sh /usr/bin/unzipcode
:demo:
unzipcode 解压生成目录 压缩文件
时间不准
无论是Windows还是Linux,在切换系统后都可能会出现时间不准的情况(Windows的情况更多)。在遇到这样的问题后需要我们手动设置与网上同步,Windows的直接控制面板即可。如果是Linux就稍微多一点步骤:
注意在更新时间的时候要先停止ntp(/etc/init.d/ntp)服务,不然会冲突