linux上实用操作记录

删除swap文件

#1 显示swap文件

swapon -s

#2 关闭swap

swapoff /home/swap(swap所在的路径)

 

文件编码

#1 查看文件编码

file test_修改接入号.csv

linux上实用操作记录

#2 修改文件编码

iconv -f encoding -t encoding inputfile -o outputfile

linux上实用操作记录

 

卸载python

#1 强制删除已安装程序及其关联

rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps

#2 删除所有残余文件

whereis python |xargs rm -frv

#3 验证删除,返回无结果

whereis python

 

linux上实用操作记录

上一篇:搜狗输入法优麒麟社区版在Ubuntu20.04LTS每隔一段时间卡顿


下一篇:linux cpu 运行模式