1.去除文件中行末的换行
cat <文件名 > | tr '\n' ' '
example:
删除全部空白
cat <文件名 > | tr -d '[:space:]'
centos里面dev-toolset组件默认不包括g++,需要安装g++请输入包名gcc-c++
yum install gcc-c++
Ubuntu卸载包
dpkg --purge 包名
Ubuntu查看包的安装信息
dpkg --s 包名
出现下图示错误时,如何安装
aptitude install 包名
aptitude 回有两次询问,第一次n,第二次Y, 之后再apt-get install就可以安装了
查看端口占用情况
netstat -ntlp|grep 端口号
Ubuntu安装ssh server
TODO
apt-get install openssh-server
apt-get install ufw
查看磁盘剩余空间
df -hl
查看目录占用空间
du -sh /usr/opt/EOSIO/1.5.0