整理总结最近使用到的Linux命令:
1.查看文件编码格式
file -i filename
2.改变文件编码格式:iconv
iconv test.log -f iso-8859-1 -t UTF-8 -o test1.log --verbose
3.查看端口号被哪个进程占用
lsof -i:端口号
netstat -tunlp|grep 端口号
整理总结最近使用到的Linux命令:
1.查看文件编码格式
file -i filename
2.改变文件编码格式:iconv
iconv test.log -f iso-8859-1 -t UTF-8 -o test1.log --verbose
3.查看端口号被哪个进程占用
lsof -i:端口号
netstat -tunlp|grep 端口号